{{--
Order Report
Date
{{date('m/d/Y', strtotime($date))}}
--}}
@if(!isset($column))
Model Number
Quantity
@else @php $columns = explode(",",$column); @endphp
@foreach ($columns as $column)
{{ucwords(str_replace("_", " ", $column))}}
@endforeach
@endif @forelse ($data as $item) @if(!isset($column))
{{$item['model']}}
{{$item['total_pending_quantity']}}
@else
@foreach ($columns as $column) @php $index_column = "model"; if($column == "quantity"){ $index_column = "total_pending_quantity"; }else if($column == "request_arrival_date"){ $index_column = "request_arrival_date"; }else if($column == "condition"){ $index_column = "condition"; } @endphp
{{$item[$index_column]}}
@endforeach
@endif @empty
No Data
@endforelse