@foreach(\App\Models\Supplier::offeringTypes($o) as $key => $offering)
@foreach($xx=$offering->items->with(['products.products.services','products.products.type.supplied','products.products.translate'])->get() as $oo) @foreach($oo->products->pluck('products')->flatten()->filter() as $po) @endforeach @endforeach
Product Services
ID Product ID Product Name Active Default Billing Setup Cost Base Cost Setup Charge Base Charge Sold Active
{{ $po->lid }} {{ $po->name_short }} {{ $po->name }} {{ $po->active ? 'YES' : 'NO' }} {{ $po->billing_interval_string }} {{ number_format($po->setup_cost_taxable,2) }} {{ number_format($po->base_cost_taxable,2) }} {{ number_format($po->setup_charge_taxable,2) }} {{ number_format($po->base_charge_taxable,2) }} {{ number_format($po->services->count()) }} {{ number_format($po->services->where('active')->count()) }}
TOTALS {{ $xx->where('active',TRUE)->count() }}   {{ number_format(($xxx=$xx->pluck('products')->flatten()->pluck('products')->flatten()->pluck('services')->flatten()->filter())->count()) }} {{ number_format($xxx->where('active')->count()) }}
@endforeach
@section('page-scripts') @css(datatables,bootstrap4) @js(datatables,bootstrap4) @append