@php $nameMin = config('constant.name.min'); $nameMax = config('constant.name.max'); $requireField = trans('admin::message.required'); @endphp @extends('shared.admin') @section('content')

{{trans('admin::order.title.header')}} #ORDER{{ $order->id }}

@csrf
@include('admin.order.forms.customer') @include('admin.order.forms.company')
@include('admin.order.elements.inventory',[ 'inventoryId' => old('inventoryId', $order->inventoryId ?? 0) ])
status !== \App\Enums\DeliveryStatus::REJECTED && $delivery->status !== \App\Enums\DeliveryStatus::CANCELED && $delivery->status !== \App\Enums\DeliveryStatus::EXPIRED) disabled @endif value="{{old('shipping_id', $order->shipping_id ?? '')}}" class="form-control form-control-lg"/>

{{trans('admin::order.title.cart')}}

@php $total = 0; $fee = 0; @endphp @for ($i = 0; $i < count($product); $i++) @php $m = $product[$i]; $total += $m->price * $m->quanlity; @endphp @endfor
{{trans('admin::order.product.label')}} {{trans('admin::order.quantity.label')}} {{trans('admin::order.amount.label')}}
{{ $m->title }}
{{Common::numberFormat($m->price)}}
{{Common::numberFormat($m->quanlity)}} {{Common::numberFormat(($m->price ?? 0) * $m->quanlity)}}
{{Common::numberFormat($total)}}
{{ Common::numberFormat($order->shipping_fee ?? 0) }}
{{ Common::numberFormat($order->discount ?? 0) }}
{{ $order->shipping_discount ? '- ' : '' }} {{ Common::numberFormat($order->shipping_discount) ?? 0 }}
{{Common::numberFormat($order->totalprice)}}
{{ !empty($order->paymentmethod ?? '') ? strtoupper($order->paymentmethod) : 'COD'}}
@php $class = $order->paymentstatus === 'SUCCESS' ? 'text-success' : 'text-danger'; @endphp
{{ strtoupper($order->paymentstatus) }}
@if(!empty($order->promocode ?? ''))
{{ $order->promocode }}
@if(!empty($order->checkpromo))
{{ $order->checkpromo }}
@endif @endif @if ($order->paymentmethod === 'Napas' && $order->paymentstatus=== 'SUCCESS' && $user->role_id === 1) @endif
@if($delivery != null)
Lalamove Order Id Status Driver Id Driver Name Driver Phone Action
{{ $delivery->customerOrderId }} {{ $delivery->status }} {{ $delivery->driverId }} {{ $delivery->driverName }} {{ $delivery->driverPhone }} @if ($delivery->status !== \App\Enums\DeliveryStatus::EXPIRED && $delivery->status !== \App\Enums\DeliveryStatus::CANCELED && $delivery->status !== \App\Enums\DeliveryStatus::REJECTED && $delivery->status !== \App\Enums\DeliveryStatus::COMPLETED) @endif
@endif
@endsection @section('style') @parent @endsection @section('script') @parent @endsection @section('js-ext') @parent @endsection