@extends('main') @section('styles') @endsection @section('page-title') @endsection @section('content')
@if (session()->has('success'))
{{ session()->get('success') }}
@endif @if (session()->has('error'))
{{ session()->get('error') }}
@endif

{!! __('My account') !!} {!! __('My Orders') !!}

@if (isDesktop())

{!! __('My Orders') !!}

@endif
{!! __('Welcome') !!} {{ Auth::user()->name }}
@if ($orders->count())
@foreach ($orders as $key => $order) @php $status = $order->status ?? 0; if ($order->publish == -1) { $status = 9; } @endphp @endforeach
# {!! __('Order No') !!} {!! __('Date') !!} {!! __('Status') !!}
{{ $loop->index + $orders->firstItem() }} {!! $order->order_number !!} {{ $order->created_at->format('Y-m-d') }} @if (empty($order->publish)) {!! __('Order pending') !!} @elseif ($order->publish == -1) {!! __('Canceled') !!} {!! __('in stage') !!} {!! transactionOrdr($order->status) !!} @else {!! transactionOrdr($order->status) !!} @endif {!! __('View Order') !!}
{{ $orders->links() }}
@else

{{ __('Start shopping now') }}


{!! __('Our products') !!}
@endif
@endsection @section('scripts') @endsection