ECOMMERCE/resources/views/account/orders.blade.php

387 lines
24 KiB
PHP
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layouts.account', ['title' => 'Account - Orders History'])
@section('content')
<!-- Orders content -->
<div class="col-lg-9">
<div class="ps-lg-3 ps-xl-0">
<!-- Page title + Sorting selects -->
<div class="row align-items-center pb-3 pb-md-4 mb-md-1 mb-lg-2">
<div class="col-md-4 col-xl-6 mb-3 mb-md-0">
<h1 class="h2 me-3 mb-0">Orders</h1>
</div>
<div class="col-md-8 col-xl-6">
<div class="row row-cols-1 row-cols-sm-2 g-3 g-xxl-4">
<div class="col">
<select aria-label="Status sorting" class="form-select"
data-select='{
"placeholderValue": "Select status",
"choices": [
{
"value": "",
"label": "Select status",
"placeholder": true
},
{
"value": "inprogress",
"label": "&lt;div class=\"d-flex align-items-center text-nowrap\"&gt;&lt;span class=\"bg-info rounded-circle p-1 me-2\"&gt;&lt;/span&gt;In progress&lt;/div&gt;"
},
{
"value": "delivered",
"label": "&lt;div class=\"d-flex align-items-center text-nowrap\"&gt;&lt;span class=\"bg-success rounded-circle p-1 me-2\"&gt;&lt;/span&gt;Delivered&lt;/div&gt;"
},
{
"value": "canceled",
"label": "&lt;div class=\"d-flex align-items-center text-nowrap\"&gt;&lt;span class=\"bg-danger rounded-circle p-1 me-2\"&gt;&lt;/span&gt;Canceled&lt;/div&gt;"
},
{
"value": "delayed",
"label": "&lt;div class=\"d-flex align-items-center text-nowrap\"&gt;&lt;span class=\"bg-warning rounded-circle p-1 me-2\"&gt;&lt;/span&gt;Delayed&lt;/div&gt;"
}
]
}'
data-select-template="true"></select>
</div>
<div class="col">
<select aria-label="Timeframe sorting" class="form-select"
data-select='{"removeItemButton": false}'>
<option value="all-time">For all time</option>
<option value="last-year">For last year</option>
<option value="last-3-months">For last 3 months</option>
<option value="last-30-days">For last 30 days</option>
<option value="last-week">For last week</option>
</select>
</div>
</div>
</div>
</div>
<!-- Sortable orders table -->
<div
data-filter-list='{"listClass": "orders-list", "sortClass": "orders-sort", "valueNames": ["date", "total"]}'>
<table class="table align-middle fs-sm text-nowrap">
<thead>
<tr>
<th class="py-3 ps-0" scope="col">
<span class="text-body fw-normal">Order <span class="d-none d-md-inline">#</span></span>
</th>
<th class="py-3 d-none d-md-table-cell" scope="col">
<button class="btn orders-sort fw-normal text-body p-0" data-sort="date"
type="button">Order date</button>
</th>
<th class="py-3 d-none d-md-table-cell" scope="col">
<span class="text-body fw-normal">Status</span>
</th>
<th class="py-3 d-none d-md-table-cell" scope="col">
<button class="btn orders-sort fw-normal text-body p-0" data-sort="total"
type="button">Total</button>
</th>
<th class="py-3" scope="col"> </th>
</tr>
</thead>
<tbody class="text-body-emphasis orders-list">
<!-- Item -->
<tr>
<td class="fw-medium pt-2 pb-3 py-md-2 ps-0">
<a aria-controls="orderDetails" aria-label="Show order details"
class="d-inline-block animate-underline text-body-emphasis text-decoration-none py-2"
data-bs-toggle="offcanvas" href="#orderDetails">
<span class="animate-target">78A6431D409</span>
</a>
<ul class="list-unstyled fw-normal text-body m-0 d-md-none">
<li>Feb 6, 2025</li>
<li class="d-flex align-items-center">
<span class="bg-info rounded-circle p-1 me-2"></span>
In progress
</li>
<li class="fw-medium text-body-emphasis">$2,105.90</li>
</ul>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
Feb 6, 2025
<span class="date d-none">25-02-06</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
<span class="d-flex align-items-center">
<span class="bg-info rounded-circle p-1 me-2"></span>
In progress
</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
$2,105.90
<span class="total d-none">210590</span>
</td>
<td class="py-3 pe-0">
<span
class="d-flex align-items-center justify-content-end position-relative gap-1 gap-sm-2 ms-n2 ms-sm-0">
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/20.png"
width="64" /></span>
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/16.png"
width="64" /></span>
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/15.png"
width="64" /></span>
<a aria-controls="orderDetails" aria-label="Show order details"
class="btn btn-icon btn-ghost btn-secondary stretched-link border-0"
data-bs-toggle="offcanvas" href="#orderDetails">
<i class="ci-chevron-right fs-lg"></i>
</a>
</span>
</td>
</tr>
<!-- Item -->
<tr>
<td class="fw-medium pt-2 pb-3 py-md-2 ps-0">
<a aria-controls="orderDetails" aria-label="Show order details"
class="d-inline-block animate-underline text-body-emphasis text-decoration-none py-2"
data-bs-toggle="offcanvas" href="#orderDetails">
<span class="animate-target">47H76G09F33</span>
</a>
<ul class="list-unstyled fw-normal text-body m-0 d-md-none">
<li>Dec 12, 2024</li>
<li class="d-flex align-items-center">
<span class="bg-success rounded-circle p-1 me-2"></span>
Delivered
</li>
<li class="fw-medium text-body-emphasis">$360.75</li>
</ul>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
Dec 12, 2024
<span class="date d-none">24-12-12</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
<span class="d-flex align-items-center">
<span class="bg-success rounded-circle p-1 me-2"></span>
Delivered
</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
$360.75
<span class="total d-none">36075</span>
</td>
<td class="py-3 pe-0">
<span
class="d-flex align-items-center justify-content-end position-relative gap-1 gap-sm-2 ms-n2 ms-sm-0">
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/14.png"
width="64" /></span>
<a aria-controls="orderDetails" aria-label="Show order details"
class="btn btn-icon btn-ghost btn-secondary stretched-link border-0"
data-bs-toggle="offcanvas" href="#orderDetails">
<i class="ci-chevron-right fs-lg"></i>
</a>
</span>
</td>
</tr>
<!-- Item -->
<tr>
<td class="fw-medium pt-2 pb-3 py-md-2 ps-0">
<a aria-controls="orderDetails" aria-label="Show order details"
class="d-inline-block animate-underline text-body-emphasis text-decoration-none py-2"
data-bs-toggle="offcanvas" href="#orderDetails">
<span class="animate-target">502TR872W2</span>
</a>
<ul class="list-unstyled fw-normal text-body m-0 d-md-none">
<li>Nov 7, 2024</li>
<li class="d-flex align-items-center">
<span class="bg-success rounded-circle p-1 me-2"></span>
Delivered
</li>
<li class="fw-medium text-body-emphasis">$4,268.00</li>
</ul>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
Nov 7, 2024
<span class="date d-none">24-11-07</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
<span class="d-flex align-items-center">
<span class="bg-success rounded-circle p-1 me-2"></span>
Delivered
</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
$4,268.00
<span class="total d-none">426800</span>
</td>
<td class="py-3 pe-0">
<span
class="d-flex align-items-center justify-content-end position-relative gap-1 gap-sm-2 ms-n2 ms-sm-0">
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/12.png"
width="64" /></span>
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/13.png"
width="64" /></span>
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/18.png"
width="64" /></span>
<span class="fw-medium me-1">+3</span>
<a aria-controls="orderDetails" aria-label="Show order details"
class="btn btn-icon btn-ghost btn-secondary stretched-link border-0"
data-bs-toggle="offcanvas" href="#orderDetails">
<i class="ci-chevron-right fs-lg"></i>
</a>
</span>
</td>
</tr>
<!-- Item -->
<tr>
<td class="fw-medium pt-2 pb-3 py-md-2 ps-0">
<a aria-controls="orderDetails" aria-label="Show order details"
class="d-inline-block animate-underline text-body-emphasis text-decoration-none py-2"
data-bs-toggle="offcanvas" href="#orderDetails">
<span class="animate-target">34VB5540K83</span>
</a>
<ul class="list-unstyled fw-normal text-body m-0 d-md-none">
<li>Sep 15, 2024</li>
<li class="d-flex align-items-center">
<span class="bg-danger rounded-circle p-1 me-2"></span>
Canceled
</li>
<li class="fw-medium text-body-emphasis">$987.50</li>
</ul>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
Sep 15, 2024
<span class="date d-none">24-09-15</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
<span class="d-flex align-items-center">
<span class="bg-danger rounded-circle p-1 me-2"></span>
Canceled
</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
$987.50
<span class="total d-none">98750</span>
</td>
<td class="py-3 pe-0">
<span
class="d-flex align-items-center justify-content-end position-relative gap-1 gap-sm-2 ms-n2 ms-sm-0">
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/21.png"
width="64" /></span>
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/11.png"
width="64" /></span>
<a aria-controls="orderDetails" aria-label="Show order details"
class="btn btn-icon btn-ghost btn-secondary stretched-link border-0"
data-bs-toggle="offcanvas" href="#orderDetails">
<i class="ci-chevron-right fs-lg"></i>
</a>
</span>
</td>
</tr>
<!-- Item -->
<tr>
<td class="fw-medium pt-2 pb-3 py-md-2 ps-0">
<a aria-controls="orderDetails" aria-label="Show order details"
class="d-inline-block animate-underline text-body-emphasis text-decoration-none py-2"
data-bs-toggle="offcanvas" href="#orderDetails">
<span class="animate-target">112P45A90V2</span>
</a>
<ul class="list-unstyled fw-normal text-body m-0 d-md-none">
<li>May 12, 2024</li>
<li class="d-flex align-items-center">
<span class="bg-success rounded-circle p-1 me-2"></span>
Delivered
</li>
<li class="fw-medium text-body-emphasis">$53.00</li>
</ul>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
May 12, 2024
<span class="date d-none">24-05-12</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
<span class="d-flex align-items-center">
<span class="bg-success rounded-circle p-1 me-2"></span>
Delivered
</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
$53.00
<span class="total d-none">5300</span>
</td>
<td class="py-3 pe-0">
<span
class="d-flex align-items-center justify-content-end position-relative gap-1 gap-sm-2 ms-n2 ms-sm-0">
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/17.png"
width="64" /></span>
<a aria-controls="orderDetails" aria-label="Show order details"
class="btn btn-icon btn-ghost btn-secondary stretched-link border-0"
data-bs-toggle="offcanvas" href="#orderDetails">
<i class="ci-chevron-right fs-lg"></i>
</a>
</span>
</td>
</tr>
<!-- Item -->
<tr>
<td class="fw-medium pt-2 pb-3 py-md-2 ps-0">
<a aria-controls="orderDetails" aria-label="Show order details"
class="d-inline-block animate-underline text-body-emphasis text-decoration-none py-2"
data-bs-toggle="offcanvas" href="#orderDetails">
<span class="animate-target">28BA67U0981</span>
</a>
<ul class="list-unstyled fw-normal text-body m-0 d-md-none">
<li>Apr 20, 2024</li>
<li class="d-flex align-items-center">
<span class="bg-danger rounded-circle p-1 me-2"></span>
Canceled
</li>
<li class="fw-medium text-body-emphasis">$1,029.50</li>
</ul>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
Apr 20, 2024
<span class="date d-none">24-04-20</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
<span class="d-flex align-items-center">
<span class="bg-danger rounded-circle p-1 me-2"></span>
Canceled
</span>
</td>
<td class="fw-medium py-3 d-none d-md-table-cell">
$1,029.50
<span class="total d-none">102950</span>
</td>
<td class="py-3 pe-0">
<span
class="d-flex align-items-center justify-content-end position-relative gap-1 gap-sm-2 ms-n2 ms-sm-0">
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/19.png"
width="64" /></span>
<span><img alt="Thumbnail" src="/img/shop/electronics/thumbs/22.png"
width="64" /></span>
<a aria-controls="orderDetails" aria-label="Show order details"
class="btn btn-icon btn-ghost btn-secondary stretched-link border-0"
data-bs-toggle="offcanvas" href="#orderDetails">
<i class="ci-chevron-right fs-lg"></i>
</a>
</span>
</td>
</tr>
</tbody>
</table>
</div>
<!-- Pagination -->
<nav aria-label="Page navigation example" class="pt-3 pb-2 pb-sm-0 mt-2 mt-md-3">
<ul class="pagination">
<li aria-current="page" class="page-item active">
<span class="page-link">
1
<span class="visually-hidden">(current)</span>
</span>
</li>
<li class="page-item">
<a class="page-link" href="#">2</a>
</li>
<li class="page-item">
<a class="page-link" href="#">3</a>
</li>
<li class="page-item">
<a class="page-link" href="#">4</a>
</li>
</ul>
</nav>
</div>
</div>
@endsection
@section('scripts')
@endsection