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

ISSUED GOODS @if($store) FROM {{$store}} @endif @if($department) FROM {{$department}} @endif @if($cost_center) FROM {{$cost_center}} @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($issued_goods as $issued_good) {{--*/ $amount = $issued_good->amount /*--}} {{--*/ $total_quantity += $issued_good->quantity /*--}} {{--*/ $total_rate += $issued_good->rate /*--}} {{--*/ $total_amount += $amount /*--}} @if($issued_good->department_id) @elseif($issued_good->cost_center_id) @else @endif {{-- --}} {{-- --}} @endforeach {{-- --}} {{-- --}}
Date Cost-Center/Department Reference Warehouse QntyPriceAmount
{{ \Carbon\Carbon::parse($issued_good->created_at)->toFormattedDateString()}}{{$issued_good->dept_name}}{{$issued_good->cost_center_name}} GIN/{{\App\Logistics\Facades\Logistics::add_leading_zeros($issued_good->goods_issued_note_id)}} {{$issued_good->warehouse}} {{number_format($issued_good->quantity)}}{{number_format($issued_good->rate, 2)}}{{number_format($amount, 2)}}
TOTAL {{number_format($total_quantity)}}{{number_format($total_rate, 2)}}{{number_format($total_amount, 2)}}
@else {{-- --}} {{-- --}} @foreach($issued_goods as $issued_good) {{--*/ $amount = $issued_good->amount /*--}} @if($issued_good->department_id) @elseif($issued_good->cost_center_id) @else @endif {{-- --}} {{-- --}} {{-- --}} @endforeach
Date Cost-Center/Department Reference Warehouse QntyPriceAmount
{{ \Carbon\Carbon::parse($issued_good->created_at)->toFormattedDateString()}}{{$issued_good->dept_name}}{{$issued_good->cost_center_name}}goods_issued_note_id)}}'> GIN/{{\App\Logistics\Facades\Logistics::add_leading_zeros($issued_good->goods_issued_note_id)}} {{$issued_good->warehouse}} {{number_format($issued_good->quantity)}}{{number_format($issued_good->rate, 2)}}{{number_format($amount, 2)}}
@endif @else









Information Not Available.!!

@endif