@extends('layouts.agent.app') @section('content')

Assign Order

{{-- --}}

{{ucwords($agents->name)}}

{{$agent_assinged->agent_order_id}}
{{--
Delivery Date: {{ date('jS M, Y' , strtotime($agent_assinged->delivery_date)) }}
Delivery Time: {{ $agent_assinged->delivery_time }}
--}}
@if($agent_assinged->status == 'P') PENDING @elseif($agent_assinged->status == 'PC') ACCEPTED @elseif($agent_assinged->status == 'H') HOLD @elseif($agent_assinged->status == 'CL') CANCEL @elseif($agent_assinged->status == 'D') DELIVERED @elseif($agent_assinged->status == 'S') SHIPPED @endif

Delivery Date: {{ date('jS M, Y' , strtotime($agent_assinged->delivery_date)) }}

Delivery Time: {{ $agent_assinged->delivery_time }}

Delivery Address

NA

Message Section

Sender Name: {{ $orders_Msg->sender_name }}
Sender Message: {{ $orders_Msg->sender_message }}
Special Instruction: {{ $orders_Msg->sender_special_instruction }}

@if(!empty($agent_assinged->comments)) @endif @php $orderPlacedInfo = App\Http\Helper1::get_orderPlacedInfo($agent_assinged->OID); @endphp

Order placed by : {{ $orderPlacedInfo->name }}

Delivery Items

    @foreach($agent_product_list as $product) @if($product->agent_id == $agentId)
  1. {{ucwords($product->item)}} [Qty : {{$product->qty}}]
  2. @if(!empty($product->imagePath))
    Personalize Image : @php //dd($product->imagePath); $imagesPath = json_decode($product->imagePath); //dd($imagesPath); @endphp @foreach($imagesPath as $img)
    {{-- {{ $img[0] }} --}}
    @endforeach
    @endif @if(!empty($product->imageText))
    Personalize Text :
    {!! $product->imageText !!}
    @endif @endif @endforeach

Total : Rs. {{ $agent_assinged->totalPrice }} (Total price included with delivery charge)
@php $price=0; @endphp
@csrf {{-- --}} {{-- --}} {{--@if($agent_assinged->reason) @endif--}} @if($agent_assinged->status == 'PC' || $agent_assinged->track_no != "") @if($agents->agent_type != 'H') @endif @endif {{-- --}} {{-- @if($agent_assinged->status == 'CL' || $agent_assinged->status == 'D') @else @endif --}}
Total Price: {{ $agent_assinged->totalPrice }}
Extra Charge (Please metion reason)
Rs. status == 'P' ? '' : 'disabled'}}/>
Delivery Charge (If needed)
Rs. status == 'P' ? '' : 'disabled'}}/>
Reason
Enter The Reason {{-- --}}
@error('reason') @enderror
{{--@error('track_no') @enderror--}} @error('track_no') @enderror
@if($agent_assinged->status == "P")
@elseif($agent_assinged->status == "PC")
@if($agents->agent_type == 'H')
@else
@endif
@elseif($agent_assinged->status == "S")
@elseif($agent_assinged->status == "CL") @elseif($agent_assinged->status == "H")
{{-- @elseif($agent_assinged->status == "H") --}} @elseif($agent_assinged->status == "D") @endif @error('status') @enderror
@if($agent_assinged->status == 'CL' || $agent_assinged->status == 'D') @else @endif
@error('status') @enderror @error('track_no') @enderror @error('reason') @enderror
@if($agent_assinged->status == "S" || $agent_assinged->status == "D")
Proof of Delivery :
@if(empty($delivered_product_image) || count($delivered_product_image) == 0)
@else
@foreach($delivered_product_image as $data)
Uploaded Image
@endforeach
@endif
@endif
{{--
AGENT NAME :{{$agents->name}}
PRODUCT DETAILS
@if($agent_assinged->status=='P') @elseif($agent_assinged->status=='PC') @elseif($agent_assinged->status=='CL') @elseif($agent_assinged->status=='H') @elseif($agent_assinged->status=='D') @elseif($agent_assinged->status=='S') @endif
ORDER NO : {{$agent_assinged->agent_order_id}}

Products

    @foreach($agent_product_list as $product) @if($product->agent_id == $agentId)
  1. {{$product->item}}
  2. @endif @endforeach

Delivery Address : {{$orders->delivery_address}}

Customer Contact : {{$orders->billing_mobile}}

@php $price=0; @endphp
@csrf @if($agent_assinged->status == 'PC' || $agent_assinged->track_no != "") @endif @if($agent_assinged->status == 'CL' || $agent_assinged->status == 'D') @else @endif
Total Price: {{ $agent_assinged->totalPrice }}
Extra Delivery Charge
Enter The Reason
@if($agent_assinged->status == "P")

@elseif($agent_assinged->status == "PC")

@elseif($agent_assinged->status == "S")

@elseif($agent_assinged->status == "CL") @elseif($agent_assinged->status == "H")
@elseif($agent_assinged->status == "H") @endif
@error('status') @enderror @error('track_no') @enderror @error('reason') @enderror
--}} @endsection