@php
$p=1;
$action_id=9;
@endphp
@forelse ($orders as $i=>$item)
@if(isMarketingEnable()==1 && Request()->status==0)
|
showroom_id!=0)) disabled="disabled" @endif value="{{$item->id}}">
|
@else
indent_id||$item->delivery_status>0) disabled @endif type="checkbox" value="{{$item->id}}" id="voucher_id_{{$item->id}}">
|
@endif
{{ ($p++) }} |
{{ date('d-M-Y h:i A',strtotime($item->created_at)) }}
|
@if($setting && $item->delivery_status==2)
{{ date('d-M-Y h:i A',strtotime($setting->transaction_to == 1?$item->storeInvoice->date:$item->fgStoreInvoice->date)) }}
|
@endif
{{ $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
|
@empty
@endforelse