@if(!empty($search = request()->s)) @lang('Showing :total_orders orders with :per_page orders per page for keyword: :keyword', ['total_orders'=>$orders->total(), 'per_page'=>$orders->perPage(), 'keyword'=>$search])  @lang('Show all') @else @lang('Showing :total_orders orders with :per_page orders per page', ['total_orders'=>$orders->total(), 'per_page'=>$orders->perPage()]) @endif @if(empty(request()->all))
@lang('Show orders in a single page') @else
@lang('Show orders with pagination') @endif
@can('delete', App\Order::class)
@endcan
@can('delete', App\Order::class) {{csrf_field()}}
@endcan {{-- --}}
{{--
@lang('Advanced Search')
--}} @can('delete', App\Order::class) @endcan @if((Auth::user()->can('update', App\Order::class)) || (Auth::user()->can('delete', App\Order::class)) || (Auth::user()->can('manage-shipment-orders', App\Other::class))) @endif @if($orders) @foreach($orders as $order) @can('delete', App\Order::class) @endcan @if((Auth::user()->can('update', App\Order::class)) || (Auth::user()->can('delete', App\Order::class)) || (Auth::user()->can('manage-shipment-orders', App\Other::class))) @endif @endforeach @endif
@lang('Order No') @lang('Products') @lang('Total') @lang('Payment Method') @lang('Payment Status') @lang('Current Status') @lang('Status') @lang('Order Date') @lang('Login Type') @lang('Processed')@lang('Action')
{{$order->orderno}} @if($order->products) {{currency_format($order->shipping_cost + $order->total - $order->coupon_amount + ($order->total * $order->tax) / 100, $order->currency)}} {{$order->payment_method}} @if($order->payment_method != 'Cash on Delivery' && $order->paid == 0) @lang('Failed') @else @if($order->paid) @lang('Paid') @else @lang('Unpaid') @endif @endif {{$order->is_processed || $order->stock_regained || ($order->payment_method != 'Cash on Delivery' && $order->paid == 0) ? '-' : $order->status}} @if($order->is_processed) @lang('Delivered') @else @if($order->stock_regained) @lang('Cancelled') @elseif($order->payment_method != 'Cash on Delivery' && $order->paid == 0) @lang('Failed') @else @lang('Pending') @endif @endif {{$order->created_at}} {{ ucwords($order->checkout_type) }} Login {{$order->processed_date? $order->processed_date : '-'}} @if((Auth::user()->can('update', App\Order::class)) || (Auth::user()->can('manage-shipment-orders', App\Other::class))) @if(!$order->is_processed && (!$order->stock_regained) && !($order->payment_method != 'Cash on Delivery' && $order->paid == 0))   @endif @endif   @can('delete', App\Order::class) @endcan
@can('delete', App\Order::class)
@endcan @if(!request()->all)
{{$orders->appends($_GET)->links()}}
@endif