@extends("layouts.admin.app") @section("page-title") {{__("Dashboard")}} @endSection @section("page-nav-title")

{{__("Special Requests")}}

{{__("All Special Requests")}}

@endsection @section("content") @include("includes.dialog")
@if(hasPermissions("view-filter-special-requests")) request()->From,"To"=> request()->To ,"id"=> request()->id,"name"=> request()->name ])}}"> {{__("Export")}} @include("admin.special_request.parts.filter") @endif
{{-- id="sampleTable"--}} {{-- --}} {{-- --}} @if(hasPermissions("admin-control")) @endif @foreach($orders as $order) {{-- @php--}} {{-- dd($order);--}} {{-- @endphp--}} @if($order->specialRequest->user_id != 240) {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @if(hasPermissions("admin-control")) @endif @endif @endforeach
#{{__("ID")}} #{{__("Shipment Number")}} {{__("User Information")}} {{__("Description")}} {{__("Image")}} {{__("Widget Price")}} {{__("Delivery Price")}}{{__("VAT")}}{{__("Total Price")}} {{__("Invoice")}}{{__("Warranty")}}{{__("Delivery Status")}} {{__("Vendor Information")}} {{__("Created At")}} {{__("Pick-up Driver Name")}} {{__("Pick-up Phone Number")}} {{__("selected location Form")}} {{__("Drop-off Driver Name")}} {{__("Drop-off Driver Phone Number")}} {{__("selected location To")}}{{__("Control")}}
{{"# ".$order->special_requests_id ." - ".$order->id}} {{$order->shipment_num}} {{$order->description}} {{$order->widget_price . $price_code}} @if($order->specialRequestRepliedPrice) {{ number_format($order->specialRequestRepliedPrice->delivery_price,2) . $price_code}} @else @if($order->specialRequestRepliedDeliveryPriceForOrdersBeforeAccounting) {{number_format($order->specialRequestRepliedDeliveryPriceForOrdersBeforeAccounting->delivery_price,2) ?? null . $price_code}} @else {{"NOT FOUND Contact DIGISOL Support"}} @endif @endif {{$order->deliveryPrice->price}}{{$tax}} @if(isset($order->AccountingData["PurchaseOrderValue"]) || isset($order->AccountingData["PurchaseOrderValueCase0"])) @else {{$order->total_price . $price_code}} @endif {{$order->warranty . " days"}} @if(isset($order->AccountingData["PurchaseOrderValue"]) || isset($order->AccountingData["PurchaseOrderValueCase0"])) @else {{"---"}} @endif {{-- {{($order->order_status)}}--}} @switch ($order->order_status) @case ("0") {{__("Waiting")}} @break; @case ("1") {{__("Delivery Process")}} @break; @case ("2") {{__("Completed")}} @break; @endswitch {{$order->created_at}}{{$order->confirmed_at}}{{$order->updated_at->diffForHumans()}}{{$order->driver_name}} {{$order->driver_phone_number}} @php if(!is_null($order->vendorSpecialRequestId)) $providedSectionInfo = \App\Models\ProvidedSection::where('user_id',$order->vendorSpecialRequestId->vendor->id)->first(); @endphp @if(!is_null($order->vendorSpecialRequestId)) @endif
order_status == 1 || $order->order_status == 2) disabled checked @elseif(!$order->driver_phone_number) disabled @endif data-url="{{route("ajax.special-request-order.change")}}" class="checked" id="from{{$order->id}}" type="checkbox">
{{$order->second_driver_name}} {{$order->second_driver_phone_number}}
order_status == 0) disabled @elseif($order->order_status == 2) checked disabled @endif data-url="{{route("ajax.special-request-order.change")}}" class="checked2" data-id="{{$order->id}}" id="to{{$order->id}}">
@if($order->order_status == 0) @endif
@if(!isset($search)) {{$orders->appends($_GET)->links("pagination::bootstrap-4")}} @endif
@endsection @section("scripts") @endsection