@lang('order.orders')
{{-- --}}
@if (session('message'))
{{ session('message') }}
@endif
| @lang('order.ID') | @lang('order.invoice_num') | @lang('order.date') | @lang('order.type') | @lang('order.branch') | @lang('order.currency_symbol') | @lang('order.client') | @lang('order.total_price') | @lang('order.status') | @lang('order.status_paid') | @lang('order.actions') | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->id }} | {{ $order->invoice_number }} | {{ $order->date }} | @lang('order.' . strtolower($order->type)) | {{ $order->branch ? (app()->getLocale() == 'en' ? $order->branch->name_en : $order->branch->name_ar) : 'Null' }} | {{ $order->branch->country->currency_symbol ?? '-' }} | {{ $order->responsible_person }} | {{--{{ $order->client->name }} | --}}{{-- @if (optional($order->branch)->tax_apply == 1) --}} {{-- @if (optional($order->branch)->tax_application == 1) --}} {{-- {{ $order->total_price_befor_tax }} @else --}} {{ $order->total_price_after_tax }} {{-- @endif @else {{ $order->total_price_after_tax }} @endif --}} | @if ($order->latestTracking) @lang('order.' . strtolower($order->latestTracking->order_status)) @else @if ($order->status == 'packing') @lang('order.readyForPickup') @else @lang('order.' . strtolower($order->status)) @endif @endif | @lang('order.' . strtolower($order->transaction ? $order->transaction->payment_status : '')) |
@if (auth('admin')->user()->hasPermissionTo('view orders', 'admin'))
@lang('order.show')
@endif
@if (auth('admin')->user()->hasPermissionTo('view purchase_invoices', 'admin'))
@lang('order.print')
@endif
@if (auth('admin')->user()->hasPermissionTo('change status orders', 'admin'))
@if ($order->last_status != 'completed' && $order->last_status != 'cancelled')
|