@extends('admin.layouts.app') @push('styles_top') @endpush @section('content')

{{ trans('admin/main.sales') }}

{{trans('update.total_success_orders')}}

{{ $successOrders['count'] }}
{{ handlePrice($successOrders['amount']) }}

{{trans('update.total_canceled_orders')}}

{{ $canceledOrders['count'] }}
{{ handlePrice($canceledOrders['amount']) }}

{{trans('update.total_waiting_orders')}}

{{ $waitingOrders['count'] }}
{{ handlePrice($waitingOrders['amount']) }}

{{trans('update.total_orders')}}

{{ $totalOrders['count'] }}
{{ handlePrice($totalOrders['amount']) }}
@can('admin_store_products_orders_export') {{ trans('admin/main.export_xls') }} @endcan
@foreach($orders as $order) @endforeach
# {{ trans('update.customer') }} {{ trans('admin/main.seller') }} {{ trans('admin/main.type') }} {{ trans('update.quantity') }} {{ trans('admin/main.paid_amount') }} {{ trans('admin/main.discount') }} {{ trans('admin/main.tax') }} {{ trans('admin/main.date') }} {{ trans('admin/main.status') }} {{ trans('admin/main.actions') }}
{{ $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
@endsection @push('scripts_bottom') @endpush