@extends('layouts.admin2') @section('content') @if(Session::has('deleted_user'))

{{session('deleted_user')}}

@endif
{{-- "col-md-3 col-md-pull-9"--}} {{-- "col-md-3 col-md-pull-9"--}}
Total Orders
{{$orders->count()}}
Total Delivered Orders
{{$delivered->count()}}
Total Cancelled Orders
{{$cancelled->count()}}
{{--
--}} {{--
--}} {{--
--}}
New Orders
{{$new->count()}}
Recent Orders
{{-- --}} {{-- --}} @if($orders) @foreach($orders as $order) {{-- --}} @if($order->stagecategory->id == 5) @else @endif @if(Auth::user()->role->name == 'Admin') @endif @if(Auth::user()->role->name == 'Clients') @endif {{-- --}} {{-- --}} {{-- --}} @endforeach @endif
S/NOrder No Order Date Pickup Date Status Name Email Phone No. Residential Address Pickup Location Coupon Code Payment Made Payment Total Balance Additional Notes Cancel Orders
S/NOrder No Order Date Pickup Date Status Name Email Phone No. Residential Address Pickup Location Coupon Code Payment Made Payment Total Balance Additional Notes Cancel Orders
{{$order->id}}{{$order->order_no}}{{$order->order_no}}{{$order->created_at->toFormattedDateString()}} {{$order->date_of_pickup}} {{$order->stagecategory->name}} {{$order -> name}} {{$order ->user-> name}}

{{$order ->email}}

{{$order ->phone_no}} {{$order ->delivery_address}}{{$order ->delivery_address}}{{Auth::User()->role ? Auth::User() -> role ->name : 'User has no role' }}{{Auth::User()->is_active == 1 ? 'Active' : 'Not Active' }}{{$order->pickuplocation->name}} {{$order->coupon_code}} GHC. {{$order->payment_amt}} GHC. {{$order->payment_total}} {{($order->payment_total)-($order->payment_amt)}} {{$order->add_notes}} @if($order->stagecategory->id == 1 || $order->stagecategory->id == 2 ) {!! Form::model($order, ['method'=>'DELETE','action'=>['OrderController@destroy', $order->id]]) !!} {!! Form::submit('Cancel' ,['class'=>'btn btn-danger']) !!} {!! Form::close() !!} @endif
@endsection