@extends("layouts.user.app") @section('page-title') {{ __('Dashboard') }} @endSection @section('page-nav-title')

{{ __('Orders') }}

{{ __('All Orders') }}

@endsection @section('css-links') @endsection @section('content') @include('includes.dialog')
@include('user.order.parts.filter')
@csrf {{ __('Export As Excel') }}
@if (isPermissionsAllowed('control-orders')) @endif @foreach ($orders as $order) @if (isPermissionsAllowed('control-orders')) @endif @endforeach
#{{ __('ID') }} {{ __('User') }} {{ __('Date') }} {{ __('Time') }} {{ __('Branch Name') }} {{ __('Status') }} {{ __('Payment Method') }} {{ __('Coupon') }} {{ __('Type') }} {{ __('Sub Total') }} {{ __('Delivery Price') }} {{ __('Sales Tax') }} {{ __('Total') }} {{ __('invoice') }} {{ __('Created at') }}{{ __('Control') }}
{{ $order->id }} {{ $order->user->first_name . ' ' . $order->user->last_name }} {{ date('Y/m/d', strtotime($order->created_at)) }} {{ date('H:i:s', strtotime($order->created_at)) }} {{ $order->branch->name }} {{ $order->getStatusText() }} {{ $order->payment->name }} {{ $order->coupon_id ? __('Yes') : __('No') }} {{ $order->getTypeText() }} {{ $order->subtotal }} {{ __('IQD') }} {{ $order->delivery }} {{ __('IQD') }} {{ number_format($order->delivery * $tax, 2) + number_format($order['vat_value'], 2) }} {{ $order->subtotal + $order->delivery }} {{ __('IQD') }} @if (!is_null($order->invoice_url)) {{ __('invoice') }} @endif {{ $order->created_at->diffForHumans() }} {{ __('Details') }}
@endsection @section('scripts') @endsection