@extends('layout') @section('h4-page', __('view') . ' ' . __('order')) @section('contents')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ $main->order?->no }} @if ($main->type == 'RECEIVE')

{{ __('from') }}: {{ $main->order?->receive_address_order }}

{{ __('to') }}: {{ $main->order?->getStore?->name }}

{{ __('Remark') }}: {{ $main->order?->receive_remark }}

@elseif($main->type == 'SEND')

{{ __('from') }}: {{ $main->order?->getStore?->name }}

{{ __('to') }}:{{ $main->order?->send_address_order }}

{{ __('Remark') }}: {{ $main->order?->send_remark }}

@endif
{{ \Carbon\Carbon::parse(optional($main->order)->date)->translatedFormat('d M Y') }}
{{ __('Type') }}
{{ __('qty') }}
@php $tempService = 0; @endphp @foreach ($main->order?->getDetails ?? [] as $k => $value) @if ($tempService != $value?->service_id) @php $tempService = $value?->service_id; @endphp
{{ $value?->service?->name }}
@endif

{{ $value->product?->name }}

x{{ $value->qty }}

@endforeach
@if (@$main->status_order != 'PENDING')
@if (@$main->order?->status_booking == App\Enums\OrderStatusEnums::PICKUP) @foreach ($main->order?->attachmentOrderPickup ?? [] as $i => $d) @endforeach @else @foreach ($main->order?->attachmentOrderShipping ?? [] as $i => $d) @endforeach @endif
@endif {{__("back")}}
@endsection @section('scripts') @endsection