{{ config('settings.company_name') }}
{{ config('settings.address_1') }}
{{ $heading }}
@if ($search_by['from'] && $search_by['to']) {{__('lang.from')}}: {{ $transaction->date_format($search_by['from']) }} {{__('lang.to')}}: {{ $transaction->date_format($search_by['to']) }} @else {{ 'Upto ' . $transaction->date_format(now()) }} @endif
@foreach ($block_array as $block_id => $floor_array) {{-- Block Total Rowspan = Total Products in Block(Main Rowspan) + Total Categories in Block(For Categories Total) + Total Floors in Block(For Floor Total) --}} @php $block_total_rowspan = $rowspan['block'][$block_id] +($categories_in_block[$block_id]) + count($floor_array) ; @endphp @foreach ($floor_array as $floor_id => $category_array) @if( $loop->iteration >1) @endif {{-- FLOOR Total Rowspan = Total Products in FLoor(Main Rowspan) + Total Categories in Floor(For Categories Total) --}} @php $floor_total_rowspan = $rowspan['floor'][$block_id][$floor_id] + count($category_array); @endphp @foreach ($category_array as $category_id => $product_array) @if( $loop->iteration >1) @endif {{-- Category Total Rowspan = Total Products in Category(Main Rowspan) --}} @foreach($product_array as $product) @if( $loop->iteration >1) @endif @php $block_total_amount +=$product->fixed_amount; $floor_total_amount +=$product->fixed_amount; $category_total_amount +=$product->fixed_amount; $grand_total_amount +=$product->fixed_amount; $block_total_size +=$product->flat_size; $floor_total_size +=$product->flat_size; $category_total_size +=$product->flat_size; $grand_total_size +=$product->flat_size; $products_in_category++; $products_in_floor++; $products_in_blocks++; $products_in_all++; @endphp @endforeach {{-- Category TOTAL AMOUNT --}} @php $category_total_amount=0; $products_in_category=0; $category_total_size=0; @endphp @endforeach {{-- FLOOR TOTAL AMOUNT --}} @php $floor_total_amount=0; $products_in_floor=0; $floor_total_size=0; @endphp @endforeach {{-- BLOCK TOTAL AMOUNT --}} @php $block_total_amount=0; $products_in_blocks=0; $products_in_blocks=0; @endphp @endforeach
{{__('lang.block')}} {{__('lang.floor')}} {{__('lang.type')}} {{__('lang.units')}} {{__('lang.size')}} {{__('lang.rate')}} {{$transaction->systemSettingCurrency()}} {{__('lang.status')}}
{{ ($block_id) ?$block_id: '-' }}
{{ ($floor_id) ? $floor_id : '-' }}
{{ ($category_id) ? $category_id : '-' }}
{{ $product->product_unique_id }} {{ $product->flat_size }} {{ $product->size_in }} {{ $transaction->convert_money_format($product->fixed_amount) }} {{ $product->status }} @if($product->status == 'HOLD') By {{ $product->hold_by }} @endif
{{__('lang.type_total')}} {{ $products_in_category }} {{ $category_total_size }} {{ $transaction->convert_money_format($category_total_amount) }}
{{__('lang.floor_total')}} {{ $products_in_floor }} {{ $floor_total_size }} {{ $transaction->convert_money_format($floor_total_amount) }}
{{__('lang.block_total')}} {{ $products_in_blocks }} {{ $block_total_size }} {{ $transaction->convert_money_format($block_total_amount) }}
{{__('lang.grand_total')}} {{ $products_in_all }} {{ $grand_total_size }} {{ $transaction->convert_money_format($grand_total_amount) }}