@extends('layouts.admin') @section('title', 'Orders List') @section('breadcrumb-item') @endsection @section('styles') @endsection @section('content')

Orders List

{{-- --}}
{{--
--}} {{-- --}} {{--
--}}
@csrf
{{-- --}}
{{-- --}} Reload


@forelse($orders as $key => $order) @empty @endforelse
Sr# Order ID Amount Shop Employee Placed On Status Remarks Actions
{{ $orders->firstItem() + $key }} {{ $order->id ?? '' }} {{ $order->amount ?? '' }} {{ $order->shop->name ?? '' }} {{ $order->employee->name ?? '' }} {{ $order->created_at->format('d-M-Y') ?? '' }} {{ $order->status_string ?? '' }} {{ $order->remarks ?? '' }}
@if (!$order->status || $order->status == 4 || $order->status == 5 || $order->status == 6 || $order->status == 1) @endif {{-- Approve Confirmationcon Dialog --}} @if (!$order->status == 3) @include('includes.modals.confirm', [ 'action' => 'approve', 'route' => 'admin.order.approve', 'model' => 'order', 'btn_class' => 'btn-outline-success', 'fa_class' => 'fa fa-check', ]) @endif {{-- Delete Confirmation Dialog --}} @include('includes.modals.confirm', [ 'action' => 'delete', 'route' => 'admin.order.delete', 'model' => 'order', 'btn_class' => 'btn-outline-danger', 'fa_class' => 'fa fa-trash', ])
No Orders Yet
Total Order Amount: {{ $orders->sum('amount') }}
@endsection @section('scripts') @endsection