@extends('shared.admin') @section('content')

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

@php $status = config('status.order.' . ($order->status ?? 0)); $orderColor = config('status.order_color.' . ($order->status ?? 0)); @endphp

{{trans('admin::message.status.' . $status)}}

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

{{$order->fullname}}

{{$order->street}}, {{$order->ward}}, {{$order->district}}

{{$order->city}}

{{trans('admin::order.phone.label')}}: {{$order->phone}}

@if(!empty($order->email ?? ''))

{{trans('admin::order.email.label')}}: {{$order->email}}

@endif

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

@if(!empty($order->company ?? ''))

{{$order->company}}

{{trans('admin::order.tax_code.label')}}: {{$order->taxcode}}

@if(!empty($order->phoneinvoice ?? ''))

{{trans('admin::order.phone.label')}}: {{$order->phoneinvoice}}

@endif @if(!empty($order->email ?? ''))

{{trans('admin::order.email.label')}}: {{$order->email}}

@endif @else ------ @endif

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

{{trans('admin::order.date.created_at')}}: {{Common::dateTime($order->created_at)}}

{{trans('admin::order.date.modified_at')}}: {{Common::dateTime($order->updated_at)}}

@if(!empty($order->deleted_at ?? ''))

{{trans('admin::order.date.deleted_at')}}: {{Common::dateTime($order->deleted_at)}}

@endif
@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.number.label')}} {{trans('admin::order.product.label')}} {{trans('admin::order.amount.sale_price')}} {{trans('admin::order.quantity.label')}} {{trans('admin::order.amount.label')}}
{{ $i + 1 }} {{ $m->title }} {{Common::numberFormat($m->price)}} {{ $m->quanlity }} {{Common::numberFormat($m->price * $m->quanlity)}}

{{trans('admin::order.payment.label')}}: {{ !empty($order->paymentmethod ?? '') ? $order->paymentmethod : 'COD'}}

@if((int)($order->promotion_id ?? 0) > 0)

{{trans('admin::order.promotion.label')}}: {{$order->promotion_name ?? ''}}

@endif @if(!empty($order->promocode ?? ''))

{{trans('admin::order.promotion.voucher')}}: {{$order->promocode ?? ''}}

@endif
@if((int)($order->discount ?? 0) > 0) @endif
{{trans('admin::order.amount.total')}}: {{Common::numberFormat($total)}}
{{trans('admin::order.amount.discount')}}: {{Common::numberFormat($order->discount)}}
{{trans('admin::order.amount.total_incl')}}: {{Common::numberFormat($order->totalprice ?? 0)}}
{{--

Invoice

Order #ORDR-{{ $order->id ?? 0 }}

{{ $order->fullname }}

{{trans('admin::order.date.created_at')}}: {{ $order->created_at }}

Order Date : {{ $order->created_at }}
Address: {{ $order->address }}
Phone: {{ $order->phone }}

Recent Orders

@php $total = 0; $fee = 0; @endphp @for ($i = 0; $i < count($product); $i++) @php $m = $product[$i]; $total += $m->price * $m->quanlity; @endphp @endfor
# Item Price Qty Total
{{ $i + 1 }} {{ $m->title }} {{\App\Http\Controllers\ProductController::product_price($m->price)}} {{ $m->quanlity }} {{\App\Http\Controllers\ProductController::product_price($m->price * $m->quanlity)}}
Sub Total
{{\App\Http\Controllers\ProductController::product_price($total)}}
Delivery Fees
Total Amount
{{\App\Http\Controllers\ProductController::product_price($total)}}
@if($order->status == '1') Pending @elseif($order->status == '2') Progress @elseif($order->status == '3') Delivery @elseif($order->status == '4') Cancel @elseif($order->status == '5') Completed @endif
--}}
{{--

From address

To address

--}}
@endsection @section('style') @parent @endsection @section('script') @endsection