@foreach(\App\Models\Supplier::offeringTypes($o) as $key => $offering)
Product |
Services |
ID |
Product ID |
Product Name |
Active |
Default Billing |
Setup Cost |
Base Cost |
Setup Charge |
Base Charge |
Sold |
Active |
@foreach($xx=$offering->items->with(['products.product.services','products.product.type.supplied','products.product.description'])->get() as $oo)
@foreach($oo->products->pluck('product')->filter() as $po)
{{ $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()) }} |
@endforeach
@endforeach
TOTALS |
{{ $xx->where('active',TRUE)->count() }} |
|
{{ number_format(($xxx=$xx->pluck('products')->flatten()->pluck('product.services')->flatten()->filter())->count()) }} |
{{ number_format($xxx->where('active')->count()) }} |
@endforeach