@extends('layouts.app') @section('content')
@if(Session::has('error'))
{{ Session::get('error') }}
@endif

{{ __('Orders') }}

@csrf
@if(count($orders) > 0)
@endif
@if(count($request->all()) > 0) {{ $orders->appends($request->all())->links('vendor.pagination.bootstrap-4') }} @else {{ $orders->links('vendor.pagination.bootstrap-4') }} @endif
@foreach($orders as $key => $row) @endforeach
{{ __('Order') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Order total') }} {{ __('Payment') }} {{ __('Fulfillment') }} {{ __('Item(s)') }} {{ __('Invoice') }}
{{ $row->order_no }} {{ $row->created_at->format('d-F-Y') }} @if($row->customer_id !== null){{ $row->customer->name }} @else {{ __('Guest User') }} @endif {{ amount_format($row->total) }} @if($row->payment_status==2) {{ __('Pending') }} @elseif($row->payment_status==1) {{ __('Complete') }} @elseif($row->payment_status==0) {{ __('Cancel') }} @elseif($row->payment_status==3) {{ __('Incomplete') }} @endif @if($row->status=='pending') {{ __('Awaiting processing') }} @elseif($row->status=='processing') {{ __('Processing') }} @elseif($row->status=='ready-for-pickup') {{ __('Ready for pickup') }} @elseif($row->status=='completed') {{ __('Completed') }} @elseif($row->status=='archived') {{ __('Archived') }} @elseif($row->status=='canceled') {{ __('Canceled') }} @else {{ $row->status }} @endif {{ $row->order_items_count }}
{{ __('Order') }} {{ __('Date') }} {{ __('Customer') }} {{ __('Order total') }} {{ __('Payment') }} {{ __('Fulfillment') }} {{ __('Item(s)') }} {{ __('Invoice') }}
@endsection @push('js') @endpush