@extends('admin.layouts.app') @section('title', 'Dashboard') @section('content')

{{__('Dashboard')}}

{!! Form::open(['route' => ['admin-home'], 'id' => 'filter_form']) !!}
{!! Form::close() !!}

{{ $totalUsers }}

{{__('Registered users')}}

{{__('More info ')}}

{{ $totalProducts }}

{{__('No of Products')}}

{{__('More info ')}}

{{ $totalOrders }}

{{__('Total Orders')}}

{{__('More info ')}}

{{ $failedOrders }}

{{__('Failed Orders')}}

{{__('More info ')}}
@if($totalSale > 0)

KWD {{ number_format($totalSale,2) }}

@else

KWD 0.00

@endif

{{__('Total Sales')}}

{{__('More info ')}}
@if($cancelledItems[0]->cancelamount == '')

{{ $cancelledItems[0]->cancelledcount }}(0.00)

@else

{{ $cancelledItems[0]->cancelledcount }} (KWD {{ number_format($cancelledItems[0]->cancelamount,2) }} )

@endif

{{__('Cancelled Items')}}

{{__('More info ')}}
@if($todayRevenue[0]->todaycount == '')

0.00

@else

KWD {{ number_format($todayRevenue[0]->todaycount,2) }}

@endif

{{__('Today\'s Revenue')}}

{{__('More info ')}}
@if($totalRevenue[0]->totalcount == '')

0.00

@else

KWD {{ number_format($totalRevenue[0]->totalcount,2) }}

@endif

{{__('Revenue Till Date')}}

{{__('More info ')}}
@endsection @push('scripts') @endpush