first upload all files
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
@extends('public.account.layout')
|
||||
|
||||
@section('title', trans('storefront::account.pages.my_orders'))
|
||||
|
||||
@section('account_breadcrumb')
|
||||
<li class="active">{{ trans('storefront::account.pages.my_orders') }}</li>
|
||||
@endsection
|
||||
|
||||
@section('panel')
|
||||
<div class="panel">
|
||||
<div class="panel-header">
|
||||
<h4>{{ trans('storefront::account.pages.my_orders') }}</h4>
|
||||
</div>
|
||||
|
||||
<div class="panel-body">
|
||||
@if ($orders->isEmpty())
|
||||
<div class="empty-message">
|
||||
<h3>{{ trans('storefront::account.orders.no_orders') }}</h3>
|
||||
</div>
|
||||
@else
|
||||
@include('public.account.partials.orders_table')
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="panel-footer">
|
||||
{!! $orders->links() !!}
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
28
Themes/Storefront/views/public/account/orders/show.blade.php
Normal file
28
Themes/Storefront/views/public/account/orders/show.blade.php
Normal file
@@ -0,0 +1,28 @@
|
||||
@extends('public.layout')
|
||||
|
||||
@section('title', trans('storefront::account.view_order.view_order'))
|
||||
|
||||
@section('breadcrumb')
|
||||
<li><a href="{{ route('account.dashboard.index') }}">{{ trans('storefront::account.pages.my_account') }}</a></li>
|
||||
<li><a href="{{ route('account.orders.index') }}">{{ trans('storefront::account.pages.my_orders') }}</a></li>
|
||||
<li class="active">{{ trans('storefront::account.orders.view_order') }}</li>
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<section class="order-details-wrap">
|
||||
<div class="container">
|
||||
<div class="order-details-top">
|
||||
<h3 class="section-title">{{ trans('storefront::account.view_order.view_order') }}</h3>
|
||||
|
||||
<div class="row">
|
||||
@include('public.account.orders.show.order_information')
|
||||
@include('public.account.orders.show.billing_address')
|
||||
@include('public.account.orders.show.shipping_address')
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@include('public.account.orders.show.items_ordered')
|
||||
@include('public.account.orders.show.order_totals')
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="col-lg-6 col-sm-9">
|
||||
<div class="order-billing-details">
|
||||
<h4>{{ trans('storefront::account.view_order.billing_address') }}</h4>
|
||||
|
||||
<address>
|
||||
<span>{{ $order->billing_full_name }}</span>
|
||||
<span>{{ $order->billing_address_1 }}</span>
|
||||
|
||||
@if ($order->billing_address_2)
|
||||
<span>{{ $order->billing_address_2 }}</span>
|
||||
@endif
|
||||
|
||||
<span>{{ $order->billing_city }}, {{ $order->billing_state_name }} {{ $order->billing_zip }}</span>
|
||||
<span>{{ $order->billing_country_name }}</span>
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,64 @@
|
||||
<div class="order-details-middle">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-borderless order-details-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ trans('storefront::account.product_name') }}</th>
|
||||
<th>{{ trans('storefront::account.view_order.unit_price') }}</th>
|
||||
<th>{{ trans('storefront::account.view_order.quantity') }}</th>
|
||||
<th>{{ trans('storefront::account.view_order.line_total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
@foreach ($order->products as $product)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ $product->url() }}" class="product-name">
|
||||
{{ $product->name }}
|
||||
</a>
|
||||
|
||||
@if ($product->hasAnyOption())
|
||||
<ul class="list-inline product-options">
|
||||
@foreach ($product->options as $option)
|
||||
<li>
|
||||
@if ($option->isFieldType())
|
||||
<label>{{ $option->name }}:</label> {{ $option->value }}
|
||||
@else
|
||||
<label>{{ $option->name }}:</label> {{ $option->values->implode('label', ', ') }}
|
||||
@endif
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<label>{{ trans('storefront::account.view_order.unit_price') }}</label>
|
||||
|
||||
<span class="product-price">
|
||||
{{ $product->unit_price->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<label>{{ trans('storefront::account.view_order.quantity') }}</label>
|
||||
|
||||
<span class="quantity">
|
||||
{{ $product->qty }}
|
||||
</span>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<label>{{ trans('storefront::account.view_order.line_total') }}</label>
|
||||
|
||||
<span class="product-price">
|
||||
{{ $product->line_total->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,51 @@
|
||||
<div class="col-lg-6 col-sm-18">
|
||||
<div class="order-information">
|
||||
<h4>{{ trans('storefront::account.view_order.order_information') }}</h4>
|
||||
|
||||
<ul class="list-inline order-information-list">
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.id') }}</label>
|
||||
<span>{{ $order->id }}</span>
|
||||
</li>
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.phone') }}</label>
|
||||
<span>{{ $order->customer_phone }}</span>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.email') }}</label>
|
||||
<span>{{ $order->customer_email }}</span>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.date') }}</label>
|
||||
<span>{{ $order->created_at->toFormattedDateString() }}</span>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.shipping_method') }}</label>
|
||||
<span>{{ $order->shipping_method }}</span>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.payment_method') }}</label>
|
||||
<span>
|
||||
{{ $order->payment_method }}
|
||||
|
||||
@if ($order->payment_method === 'Bank Transfer')
|
||||
</br>
|
||||
{{ setting('bank_transfer_instructions') }}
|
||||
@endif
|
||||
|
||||
</span>
|
||||
</li>
|
||||
|
||||
@if ($order->note)
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.order_note') }}</label>
|
||||
<span>{{ $order->note }}</span>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,52 @@
|
||||
<div class="order-details-bottom">
|
||||
<ul class="list-inline order-summary-list">
|
||||
<li>
|
||||
<label>{{ trans('storefront::account.view_order.subtotal') }}</label>
|
||||
|
||||
<span class="price-amount">
|
||||
{{ $order->sub_total->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</li>
|
||||
|
||||
@if ($order->hasShippingMethod())
|
||||
<li>
|
||||
<label>{{ $order->shipping_method }}</label>
|
||||
|
||||
<span class="price-amount">
|
||||
{{ $order->shipping_cost->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
@foreach ($order->taxes as $tax)
|
||||
<li>
|
||||
<label>{{ $tax->name }}</label>
|
||||
|
||||
<span class="price-amount">
|
||||
{{ $tax->order_tax->amount->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</li>
|
||||
@endforeach
|
||||
|
||||
@if ($order->hasCoupon())
|
||||
<li>
|
||||
<label>
|
||||
{{ trans('storefront::account.view_order.coupon') }}
|
||||
<span class="coupon-code">[{{ $order->coupon->code }}]</span>
|
||||
</label>
|
||||
|
||||
<span class="price-amount">
|
||||
-{{ $order->discount->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</li>
|
||||
@endif
|
||||
</ul>
|
||||
|
||||
<div class="order-summary-total">
|
||||
<label>{{ trans('storefront::account.view_order.total') }}</label>
|
||||
|
||||
<span class="total-price">
|
||||
{{ $order->total->convert($order->currency, $order->currency_rate)->format($order->currency) }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,17 @@
|
||||
<div class="col-lg-6 col-sm-9">
|
||||
<div class="order-shipping-details">
|
||||
<h4>{{ trans('storefront::account.view_order.shipping_address') }}</h4>
|
||||
|
||||
<address>
|
||||
<span>{{ $order->shipping_full_name }}</span>
|
||||
<span>{{ $order->shipping_address_1 }}</span>
|
||||
|
||||
@if ($order->shipping_address_2)
|
||||
<span>{{ $order->shipping_address_2 }}</span>
|
||||
@endif
|
||||
|
||||
<span>{{ $order->shipping_city }}, {{ $order->shipping_state_name }} {{ $order->shipping_zip }}</span>
|
||||
<span>{{ $order->shipping_country_name }}</span>
|
||||
</address>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user