shell bypass 403
@extends('web.layout.default')
@section('page_title')
| {{ trans('labels.my_orders') }}
@endsection
@section('content')
<div class="breadcrumb-sec">
<div class="container">
<div class="breadcrumb-sec-content">
<nav class="text-dark d-flex breadcrumb-divider" aria-label="breadcrumb">
<ol class="breadcrumb">
<li
class="breadcrumb-item {{ session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : '' }}">
<a class="text-dark" href="{{ route('home') }}">{{ trans('labels.home') }}</a>
</li>
<li class="breadcrumb-item {{ session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : '' }} fw-bold text-primary active"
aria-current="page">{{ trans('labels.my_orders') }}</li>
</ol>
</nav>
</div>
</div>
</div>
<section>
<div class="container my-5">
<div class="row">
<div class="col-lg-3">
@include('web.layout.usersidebar')
</div>
<div class="col-lg-9 d-flex">
<div class="user-content-wrapper card">
<p class="title pb-2 color-changer border-bottom">{{ trans('labels.my_orders') }}</p>
<div class="p-3 rounded-3 bg-gray user-sidebar-card mb-3">
<div class="row g-3">
<div class="col-md-4 status-card-content">
<a href="{{ URL::to('/orders?type=processing') }}" class="order-status-card {{ isset($_GET['type']) == true ? ($_GET['type'] == 'processing' || $_GET['type'] == '' ? 'border bg-white' : 'border color-changer') : (!isset($_GET['type']) == true ? 'border-dark bg-white' : '') }}">
<div class="icon">
<i class="fs-5 fa-solid fa-hourglass-empty"></i>
</div>
<p class="mb-0 fw-600">{{ trans('labels.processing') }}</p>
<h5 class="mb-0 fw-600 count_circle {{ isset($_GET['type']) == true ? ($_GET['type'] == 'processing' || $_GET['type'] == '' ? 'border-dark bg-dark text-white' : '') : (!isset($_GET['type']) == true ? 'border-dark bg-dark text-white' : '') }}">{{ $totalprocessing }}</h5>
</a>
</div>
<div class="col-md-4 status-card-content">
<a href="{{ URL::to('/orders?type=completed') }}" class="order-status-card {{ isset($_GET['type']) == true ? ($_GET['type'] == 'completed' ? 'border bg-white' : 'border color-changer') : '' }}">
<div class="icon">
<i class="fs-5 fa-solid fa-check"></i>
</div>
<p class="mb-0 fw-600">{{ trans('labels.completed') }}</p>
<h5 class="mb-0 fw-600 count_circle {{ isset($_GET['type']) == true ? ($_GET['type'] == 'completed' ? 'border-dark bg-dark text-white' : '') : '' }}">{{ $totalcompleted }}</h5>
</a>
</div>
<div class="col-md-4 status-card-content">
<a href="{{ URL::to('/orders?type=cancelled') }}" class="order-status-card {{ isset($_GET['type']) == true ? ($_GET['type'] == 'cancelled' ? 'border bg-white' : 'border color-changer') : '' }}">
<div class="icon">
<i class="fs-5 fa-solid fa-xmark"></i>
</div>
<p class="mb-0 fw-600">{{ trans('labels.cancelled') }}</p>
<h5 class="mb-0 fw-600 count_circle {{ isset($_GET['type']) == true ? ($_GET['type'] == 'cancelled' ? 'border-dark bg-dark text-white' : '') : '' }}">{{ $totalcancelled }}</h5>
</a>
</div>
</div>
</div>
@if (count($getorders) > 0)
<div class="row mb-3">
<div class="table-responsive">
<table class="table border-top">
<thead class="rounded-top">
<tr class="align-middle">
<th class="fs-7 fw-600 color-changer">#</th>
<th class="fs-7 fw-600 color-changer">{{ trans('labels.date') }}</th>
<th class="fs-7 fw-600 color-changer">{{ trans('labels.order_amount') }}</th>
<th class="fs-7 fw-600 color-changer">{{ trans('labels.status') }}</th>
<th class="fs-7 fw-600 color-changer">{{ trans('labels.action') }}</th>
</tr>
</thead>
<tbody class="rounded-bottom">
@foreach ($getorders as $orderdata)
<tr class="align-middle">
<td class="fs-7 fw-600"> <a
href="{{ URL::to('orders-' . $orderdata->order_number) }}"
class="text-dark color-changer">#{{ $orderdata->order_number }}</a></td>
<td class="fs-7 color-changer">{{ helper::date_format($orderdata->created_at) }}
</td>
<td class="fs-7 color-changer">
{{ helper::currency_format($orderdata->grand_total) }} </td>
<td class="fs-7">
@if ($orderdata->status_type == '1')
<span class="text-warning">
{{ @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name == null ? '-' : @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name }}</span>
@elseif($orderdata->status_type == '2')
<span class="text-info">
{{ @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name == null ? '-' : @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name }}</span>
@elseif($orderdata->status_type == '3')
<span class="text-success">
{{ @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name == null ? '-' : @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name }}</span>
@elseif($orderdata->status_type == '4')
<span class="text-danger">
{{ @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name == null ? '-' : @helper::gettype($orderdata->status, $orderdata->status_type, $orderdata->order_type, '')->name }}</span>
@endif
</td>
<td class="fs-7">
<a href="{{ URL::to('orders-' . $orderdata->order_number) }}"
class="btn btn-sm btn-info square mx-1 mb-1" tooltip="View"><i
class="fa-regular fa-eye"></i></a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
<div class="d-flex justify-content-center">
{{ $getorders->appends(request()->query())->links() }}
</div>
@else
@include('web.nodata')
@endif
</div>
</div>
</div>
</div>
</section>
@endsection
@section('scripts')
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/custom/orders.js') }}"></script>
@endsection