@extends('admin.layout.master') @section('title',$blade_type==1?'ORDER LIST MANAGEMENT':'DELIVERY LIST MANAGEMENT') @section('custom_style') @endsection @section ('content')

ORDER {{$type==1?'RETURN':''}} LIST

{{-- --}}
{{-- --}}
{{--
--}}
{{--
--}}
@csrf {{-- --}} {{-- --}} @php $p=1; $action_id=9; @endphp @forelse ($orders as $i=>$item) {{-- --}} {{-- --}} {{-- --}} @empty @endforelse
# Order No Date OrderTypeTansaction id ShowRoom costCenterGroup StatusApprovalsAction
{{ ($p++) }} {{ $item->order_no }} {{ date('d-M-Y h:i A',strtotime($item->created_at)) }} {{ $item->special==1?'Special':'Normal' }} {{ $item->group==0?'All':$item->groupInfo->name }} {{ $item->showroom?$item->showroom->name_eng:'N\A' }} {{ $item->showroom?$item->showroom->cost_center:'N\A' }} {{ ($item->delivery_status==2?'DELIVERED':($item->delivery_status==0?'PENDING':'REJECTED')) }} @if(($item->approve_status==2)) @else @if($action_step_id=checkCostCenterWiseApproval($item->approvals,$action_id,$item->cost_center_id)) @elseif($item->approvals && count($item->approvals->where('admin_id',active_user()))>0) @else {{'No Acess'}} @endif @endif Print @if ($item->delivery_status == 2) @php $showBill=0; $invoice=$item->fgStoreInvoice??$item->storeInvoice; @endphp @if($invoice && $invoice->status==1) Bill @endif @endif
@include('inventory.order.detail_modal') @endsection @section('script') @stop