{{ $order->id }} |
@if(!empty($order->buyer))
{{ $order->buyer->full_name }}
ID : {{ $order->buyer->id }}
@elseif(!empty($order->gift) and !empty($order->gift))
{{ $order->gift->user->full_name }}
ID : {{ $order->gift->user_id }}
{!! trans('update.a_gift_for_name_on_date',['name' => $order->gift->name, 'date' => (!empty($order->gift->date) ? dateTimeFormat($order->gift->date, 'j M Y H:i') : trans('update.instantly'))]) !!}
@endif
|
{{ !empty($order->seller) ? $order->seller->full_name : '' }}
ID : {{ !empty($order->seller) ? $order->seller->id : '' }}
|
@if(!empty($order->product))
{{ trans('update.product_type_'.$order->product->type) }}
@endif
|
{{ $order->quantity }}
|
@if(!empty($order->sale))
{{ handlePrice($order->sale->total_amount) }}
@endif
|
@if(!empty($order->sale))
{{ handlePrice($order->sale->discount) }}
@endif
|
@if(!empty($order->sale))
{{ handlePrice($order->sale->tax) }}
@endif
|
{{ dateTimeFormat($order->created_at, 'j F Y H:i') }} |
@if($order->status == \App\Models\ProductOrder::$waitingDelivery)
{{ trans('update.product_order_status_waiting_delivery') }}
@elseif($order->status == \App\Models\ProductOrder::$success)
{{ trans('update.product_order_status_success') }}
@elseif($order->status == \App\Models\ProductOrder::$shipped)
{{ trans('update.product_order_status_shipped') }}
@elseif($order->status == \App\Models\ProductOrder::$canceled)
{{ trans('update.product_order_status_canceled') }}
@endif
|
@can('admin_store_products_orders_invoice')
@if(!empty($order->product))
@endif
@endcan
@can('admin_store_products_orders_refund')
@include('admin.includes.delete_button',[
'url' => getAdminPanelUrl().'/store/orders/'. $order->id .'/refund',
'tooltip' => trans('admin/main.refund'),
'btnIcon' => 'fa-times-circle'
])
@endcan
@if($order->status == \App\Models\ProductOrder::$waitingDelivery)
@can('admin_store_products_orders_tracking_code')
@endcan
@endif
|
@endforeach