@extends('admin.layouts.app')
@section('title', 'Dashboard')
@section('content')
{!! Form::open(['route' => ['admin-home'], 'id' => 'filter_form']) !!}
{!! Form::close() !!}
{{ $totalUsers }}
{{__('Registered users')}}
{{ $totalProducts }}
{{__('No of Products')}}
{{ $totalOrders }}
{{__('Total Orders')}}
{{ $failedOrders }}
{{__('Failed Orders')}}
@if($totalSale > 0)
KWD {{ number_format($totalSale,2) }}
@else
KWD 0.00
@endif
{{__('Total Sales')}}
@if($cancelledItems[0]->cancelamount == '')
{{ $cancelledItems[0]->cancelledcount }}(0.00)
@else
{{ $cancelledItems[0]->cancelledcount }} (KWD {{ number_format($cancelledItems[0]->cancelamount,2) }} )
@endif
{{__('Cancelled Items')}}
@if($todayRevenue[0]->todaycount == '')
0.00
@else
KWD {{ number_format($todayRevenue[0]->todaycount,2) }}
@endif
{{__('Today\'s Revenue')}}
@if($totalRevenue[0]->totalcount == '')
0.00
@else
KWD {{ number_format($totalRevenue[0]->totalcount,2) }}
@endif
{{__('Revenue Till Date')}}
@endsection
@push('scripts')
@endpush