MIF_E31210863/resources/views/frontend/orders/show.blade.php

77 lines
2.5 KiB
PHP

@extends('layouts.frontend')
@section('title', 'Order - ' . $order->code)
@section('content')
<div class="breadcrumb-area pt-205 breadcrumb-padding pb-210" style="background-image: url({{ asset('frontend/assets/img/bg/breadcrumb.jpg') }})">
<div class="container-fluid">
<div class="breadcrumb-content text-center">
<h2>My Favorites</h2>
<ul>
<li><a href="{{ url('/') }}">home</a></li>
<li>my favorites</li>
</ul>
</div>
</div>
</div>
<div class="shop-page-wrapper shop-page-padding ptb-100">
<div class="container-fluid">
<div class="row">
<div class="col-lg-3">
<h3 class="sidebar-title">User Menu</h3>
<div class="sidebar-categories">
<ul>
<li><a href="{{ url('profile') }}">Profile</a></li>
<li><a href="{{ url('orders') }}">Orders</a></li>
<li><a href="{{ url('favorites') }}">Favorites</a></li>
</ul>
</div>
</div>
<div class="col-lg-9">
<div class="d-flex justify-content-between">
<h2 class="text-dark font-weight-medium">Order ID #{{ $order->code }}</h2>
</div>
<div class="row pt-5">
<div class="col-xl-4 col-lg-4">
<p class="text-dark mb-2" style="font-weight: normal; font-size:16px; text-transform: uppercase;">Billing Address</p>
<address>
<br>Name: {{ $order->customer_first_name }} {{ $order->customer_last_name }}
<br> Phone: {{ $order->customer_phone }}
</address>
</div>
</div>
<div class="table-content table-responsive">
<table class="table table-bordered table-striped">
<thead>
<tr>
<th>#</th>
<th>Item</th>
<th>Description</th>
<th>Quantity</th>
<th>Unit Cost</th>
<th>Total</th>
</tr>
</thead>
<tbody>
@forelse ($order->orderItems as $item)
<tr>
<td>{{ $item->sku }}</td>
<td>{{ $item->name }}</td>
<td>{{ $item->weight }} (gram)</td>
<td>{{ $item->qty }}</td>
<td>Rp.{{ number_format($item->base_price) }}</td>
<td>Rp.{{ number_format($item->sub_total) }}</td>
</tr>
@empty
<tr>
<td colspan="6">Order item not found!</td>
</tr>
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection