This commit is contained in:
35
resources/views/admin/orders/index.blade.php
Normal file
35
resources/views/admin/orders/index.blade.php
Normal file
@@ -0,0 +1,35 @@
|
||||
@extends('layouts.shop')
|
||||
|
||||
@section('content')
|
||||
@include('partials.breadcrumbs', [
|
||||
'items' => [
|
||||
['label' => 'Админка', 'url' => route('admin.dashboard')],
|
||||
['label' => 'Заказы', 'url' => null],
|
||||
],
|
||||
])
|
||||
|
||||
<section class="pc-section">
|
||||
<div class="pc-section-title">
|
||||
<h2>Заказы</h2>
|
||||
</div>
|
||||
|
||||
<div class="pc-card">
|
||||
@if ($orders->isEmpty())
|
||||
<p>Заказов пока нет.</p>
|
||||
@else
|
||||
<div class="pc-account-orders">
|
||||
@foreach ($orders as $order)
|
||||
<a class="pc-account-order" href="{{ route('admin.orders.show', $order) }}">
|
||||
<span>Заказ #{{ $order->id }} ({{ $order->status }})</span>
|
||||
<strong>{{ number_format($order->total, 0, '.', ' ') }} {{ config('shop.currency_symbol', '₽') }}</strong>
|
||||
</a>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="pc-pagination">
|
||||
{{ $orders->links() }}
|
||||
</div>
|
||||
</section>
|
||||
@endsection
|
||||
Reference in New Issue
Block a user