@extends('layout') @section('h4-page', __('edit') . ' ' . __('order')) @section('contents')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
  • Order No : {{ @$main->no }}
  • Order Date : {{ @$main->date }}
  • Status Booking : {{ @$main->getStatus() }}
  • Account : {{ @$main->account?->fullname() }}
  • Rider receive: {{ @$main->rider?->fullname() }}
  • Rider send: {{ @$main->riderSend?->fullname() }}
  • Service Type : {{ @$main->service_type == 'DELIVERY' ? __('delivery') : __('getSelf') }}
  • Receive Date : {{ date('Y-m-d', strtotime(@$main->receive_datetime)) }}
  • Receive Address : {{ @$main->receiveAddress?->fullAddress() }}
  • Receive Remark : {{ @$main->receive_remark }}
  • Send Date : {{ date('Y-m-d', strtotime(@$main->send_datetime)) }}
  • Send Address : {{ @$main->sendAddress?->fullAddress() }}
  • Send Remark : {{ @$main->send_remark }}
  • Delivery : {{ @$main->delivery_type }}
  • Shipping Price : {{ number_format(@$main->shipping_price ?? 0, 2) }}
  • Promotion Price : {{ number_format(@$main->promotion_price ?? 0, 2) }}
  • Total Price : {{ number_format(@$main->total_price ?? 0, 2) }}
  • Customer
    @if (count(@$main->getImageAccount) > 0)
    @foreach (@$main->getImageAccount as $key => $item) @if ($key <= 2)
    getImageAccount) - 1 || $key == 2) onclick="openModal('myModal')" @endif>
    @endif @endforeach
    @endif
    Rider Revice
    @if (count(@$main->attachmentOrderPickup) > 0)
    @foreach (@$main->attachmentOrderPickup as $key => $item) @if ($key <= 2)
    attachmentOrderPickup) - 1 || $key == 2) onclick="openModal('rider')" @endif>
    @endif @endforeach
    @endif
    Rider Send
    @if (count(@$main->attachmentOrderShipping) > 0)
    @foreach (@$main->attachmentOrderShipping as $key => $item)
    attachmentOrderShipping) - 1 || $key == 2) onclick="openModal('riderSend')" @endif>
    @endforeach
    @endif
@foreach (@$main->getDetails as $key => $item) @endforeach @for ($i = count(@$main->getDetails); $i <= 24; $i++) @endfor
# product service qty price unit total
{{ $key + 1 }} {{ $item->product?->name }} {{ $item->service?->name }} {{ $item->qty }} {{ number_format($item->price ?? 0, 2) }} {{ $item->units?->name }} {{ number_format($item->qty * $item->price, 2) }}
{{-- @if (@$main->status_booking != App\Enums\OrderStatusEnums::CANCEL || @$main->status_booking != App\Enums\OrderStatusEnums::SUCCESS)
  • Cancel
  • @endif --}}
    {{--
    • @if (count(@$main->getImageAccount) > 0)
      @foreach (@$main->getImageAccount as $key => $item)
      @endforeach
      @else

      Not Found

      @endif
    • @foreach (@$main->getDetails as $key => $item) @endforeach
      # product service qty price unit total
      {{ $key + 1 }} {{ $item->product?->name }} {{ $item->service?->name }} {{ $item->qty }} {{ number_format($item->price ?? 0, 2) }} {{ $item->unit_id }} {{ number_format($item->qty * $item->price, 2) }}
    --}} @if (auth()?->user()?->role?->id == 3)
    @csrf @method('PUT')
    • {{--

      Image {{ App\Enums\OrderStatusEnums::PICKUP }}

      --}} @if (@$main->status_booking == App\Enums\OrderStatusEnums::PICKUP) {{-- @if (count(@$main->attachmentOrderPickup) > 0)
      @foreach (@$main->attachmentOrderPickup as $key => $item)
      @endforeach
      @else

      Not Found

      @endif --}}
      @else {{-- @if (count(@$main->attachmentOrderPickup) > 0)
      @foreach (@$main->attachmentOrderPickup as $key => $item)
      @endforeach
      @else

      Not Found

      @endif --}} @endif
    • {{--

      Image {{ App\Enums\OrderStatusEnums::SHIPPING }}

      --}} @if (@$main->status_booking == App\Enums\OrderStatusEnums::SHIPPING)
      @else {{-- @if (count(@$main->attachmentOrderShipping) > 0)
      @foreach (@$main->attachmentOrderShipping as $key => $item)
      @endforeach
      @else

      Not Found

      @endif --}} @endif
    Back
    @endif
    @endsection @section('scripts') {{-- fileupload --}} @endsection