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

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

@if(!marketing_customer())
@endif
{{-- --}}
@if(isset(Request()->group) || marketing_customer())
{{-- --}} {{--
--}} {{-- --}} {{--
--}}
{{-- --}}
{{--
--}} {{--
--}}
@csrf
@if(isMarketingEnable()==1 && Request()->status==0) @endif @if(isMarketingEnable()==1 && Request()->status==0) @else @endif @if(Request()->status==2) @endif @php $p=1; $action_id=9; @endphp @forelse ($orders as $i=>$item) @if(isMarketingEnable()==1 && Request()->status==0) @else @endif @if($setting && $item->delivery_status==2) @endif @empty @endforelse
showroom_id!=0)) disabled="disabled" @endif onclick="selectAllChild(this)">
# DateBill DateOrder No Showroom Order Type Group Status Approvals Action
showroom_id!=0)) disabled="disabled" @endif value="{{$item->id}}">
indent_id||$item->delivery_status>0) disabled @endif type="checkbox" value="{{$item->id}}" id="voucher_id_{{$item->id}}">
{{ ($p++) }} {{ date('d-M-Y h:i A',strtotime($item->created_at)) }} {{ date('d-M-Y h:i A',strtotime($setting->transaction_to == 1?$item->storeInvoice->date:$item->fgStoreInvoice->date)) }} {{ $item->order_no }} {{ $item->showroom?$item->showroom->name_eng:'N\A' }} {{ ($item->special==1?'Special':'Regular') }} {{ $item->group==0?'All':$item->groupInfo->name }} {{-- @dd(checkCostCenterWiseApproval($item->approvals,$action_id,$item->showroom->cost_center)) --}} {{ ($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 Access'}} @endif @endif {{-- --}} Print {{-- --}} @if ($item->delivery_status == 0 && get_guard()=='admin') @if(checkAuthPermission('order.edit')) Edit @endif @endif {{-- @if ($item->delivery_status == 2 && get_guard()=='admin') Bill @endif --}} @if ($item->delivery_status == 0 && get_guard()=='admin') @if(isMarketingEnable()==1) @if(checkAuthPermission('sell.create-dp-tp')) {{$type==1?'Accept':'Deliver'}} @endif @else @if(checkAuthPermission('delivery.add')) {{$type==1?'Accept':'Deliver'}} @endif @endif @elseif ($item->delivery_status == 1 && get_guard()=='admin') @endif

{{--
--}}
@endif
@include('inventory.order.detail_modal') @endsection @section('script') @stop