@if(isset($received_goods[0])) @if($print) Received Goods
Date: {{ date('d/m/Y') }}

RECEIVED GOODS @if($vendor) FROM {{$vendor}} @endif @if($from != "" && $to != "") FROM {{\Carbon\Carbon::parse($from)->toFormattedDateString()}} TO {{\Carbon\Carbon::parse($to)->toFormattedDateString()}} @elseif($from != "" && $to == "") FROM {{\Carbon\Carbon::parse($from)->toFormattedDateString()}} TO {{\Carbon\Carbon::parse(date("Y/m/d"))->toFormattedDateString()}} @elseif($from == "" && $to != "") AS OF {{\Carbon\Carbon::parse($to)->toFormattedDateString()}} @else AS OF {{\Carbon\Carbon::parse(date('Y-m-d'))->toFormattedDateString()}} @endif

{{--*/ $total_quantity = 0 /*--}} {{--*/ $total_rate = 0 /*--}} {{--*/ $total_amount = 0 /*--}} @foreach($received_goods as $received_good) {{--*/ $amount = $received_good->amount /*--}} {{--*/ $total_quantity += $received_good->quantity /*--}} {{--*/ $total_rate += $received_good->rate /*--}} {{--*/ $total_amount += $amount /*--}} @endforeach {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
Date Supplier Reference Warehouse Qnty Price Amount
{{ \Carbon\Carbon::parse($received_good->created_at)->toFormattedDateString()}} {{$received_good->supplier_name}} GRN/{{\App\Logistics\Facades\Logistics::add_leading_zeros($received_good->goods_received_note_id)}} {{$received_good->warehouse}} {{number_format($received_good->quantity)}} {{$received_good->goods_received_note->currency == 'USD' ? '$' : ($received_good->goods_received_note->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($received_good->rate, 2)}} {{$received_good->goods_received_note->currency == 'USD' ? '$' : ($received_good->goods_received_note->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($amount, 2)}}
TOTAL {{number_format($total_quantity)}}{{number_format($total_rate, 2)}}{{number_format($total_amount, 2)}}
@else @foreach($received_goods as $received_good) {{--*/ $amount = $received_good->amount /*--}} @endforeach
Date Supplier Reference Warehouse Qnty Price Amount
{{ \Carbon\Carbon::parse($received_good->created_at)->toFormattedDateString()}} {{$received_good->supplier_name}} goods_received_note_id)}}'> GRN/{{\App\Logistics\Facades\Logistics::add_leading_zeros($received_good->goods_received_note_id)}} {{$received_good->warehouse}} {{number_format($received_good->quantity)}} {{$received_good->goods_received_note->currency == 'USD' ? '$' : ($received_good->goods_received_note->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($received_good->rate, 2)}} {{$received_good->goods_received_note->currency == 'USD' ? '$' : ($received_good->goods_received_note->currency == 'TSH' ? 'Tsh' : '')}} {{number_format($amount, 2)}}
@endif @else









Information Not Available.!!

@endif