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

{{ $type == 1 ? __('obs.order_retutn_list') : '' }}

@if (!marketing_customer())
@endif
{{-- --}}
@if (isset(Request()->group) || marketing_customer())
{{-- --}} {{--
--}} {{-- --}} {{--
--}}
{{-- --}}
{!!getDateInput('date_from','date_from',Request()->date_from)!!} {!!getDateInput('date_to','date_to',Request()->date_to)!!} {{-- --}}
{{--
--}} {{--
--}}
@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)">
# Date{{__('obs.bill_date')}}{{__('obs.order_no')}} {{__('obs.showroom')}} {{__('obs.order_type')}} {{__('obs.group')}} {{__('obs.status')}} {{__('obs.approvals')}} {{__('obs.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 {{-- --}} {{__('obs.print')}} {{-- --}} @if ($item->delivery_status == 0 && get_guard() == 'admin') @if (checkAuthPermission('order.edit')) {{__('obs.edit')}} @endif @endif {{-- @if ($item->delivery_status == 2 && get_guard() == 'admin') {{__('obs.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