@foreach($o->offeringTypes() as $key => $offering)
Product |
Services |
ID |
Product ID |
Product Name |
Active |
Setup Cost |
Base Cost |
Types |
Products |
Sold |
Active |
@foreach($xx=$offering->items->with(['types.product.services'])->get() as $oo)
{{ $oo->id }} |
{{ $oo->name }} |
{{ $oo->name_long }} |
{{ $oo->active ? 'YES' : 'NO' }} |
{{ number_format($oo->setup_cost_taxable,2) }} |
{{ number_format($oo->base_cost_taxable,2) }} |
{{ number_format($oo->types->count()) }} |
{{ number_format($oo->types->pluck('product')->filter()->count()) }} |
{{ number_format(($x=$oo->types->pluck('product.services')->flatten()->filter())->count()) }} |
{{ number_format($x->where('active')->count()) }} |
@endforeach
TOTALS |
{{ $xx->where('active',TRUE)->count() }} |
{{ number_format(($x=$xx->pluck('types')->flatten()->filter())->count()) }} |
{{ number_format($x->pluck('product')->filter()->count()) }} |
{{ number_format(($xxx=$x->pluck('product.services')->flatten()->filter())->count()) }} |
{{ number_format($xxx->where('active')->count()) }} |
@endforeach