{{ config('settings.company_name')}}
{{ config('settings.address_1') }}
{{$heading}}
@if($search_by != "") {{__('lang.from')}}: {{ $transaction->date_format($search_by['from']) }} {{__('lang.to')}}: {{ $transaction->date_format($search_by['to']) }} @else {{ 'Upto ' .$transaction->date_format(now()) }} @endif
@php $total_unit = 0; @endphp @foreach($product_count as $count) @php $total_unit += $count->total_inventory; @endphp @endforeach @foreach($td_head as $key => $td) @php $count = $key+1; @endphp @endforeach @php if(isset($schedule1[0])){ $my_schedule = $schedule1; }else{ $my_schedule = $schedules; } $payable_count= []; @endphp @foreach($my_schedule as $key_sch => $schedule) @if(isset($schedule)) @foreach($td_head as $key => $td) @php $check_array = []; @endphp @foreach($schedule as $key_sch_sub => $value) @php $month_year = $value->month.'-'.$value->year; @endphp @if($td == $month_year) @php array_push($check_array,$month_year); @endphp @if(isset($schedule1[$key_sch][$key_sch_sub])) @if($value->schedule_id != $schedules[$key_sch][$key_sch_sub]->schedule_id) @php $payable_count[$month_year] += $schedule[$key_sch_sub]->payable_amount; @endphp @else @endif @else @php $payable_count[$month_year] += $schedule[$key_sch_sub]->payable_amount; @endphp @endif @else @php continue; @endphp @endif @endforeach @if (count($check_array) === 0) @endif @endforeach @else @endif @endforeach @foreach($td_head as $key => $td) @endforeach
@if(isset($extra)) {{ ucwords($extra['branch_name']) }} @endif
{{__('lang.product_summary')}}
{{ $count->status }} {{ $count->total_inventory }}
{{__('lang.total')}} {{ $total_unit }}
{{__('lang.unit_no')}} {{__('lang.customer')}} {{__('lang.booking_date')}}{{ $td }}
{{ $sells[$key_sch]->product_name }} {{ $sells[$key_sch]->customer_name }} {{ $transaction->date_format($sells[$key_sch]->booking_date) }}{{ number_format($value->payable_amount) }}0.00{{ number_format($value->payable_amount) }}0.000.00
{{__('lang.total')}}{{ number_format($payable_count[$td]) }}