@extends('layouts.app') @section('title', '| Dashboard') @section('content')
@lang('dashboard.dashboard')

@if(!empty($totalproduct)) {{$totalproduct[0]->totalproduct}} @else 0 @endif


{{product($dayProduct['yasterday'],$dayProduct['today'])}} @lang('dashboard.instock')

@if(!empty($totalsale)) {{floatval($totalsale[0]->totalsale)}} $ @else 0$ @endif


{{check($daySales['yasterday'],$daySales['today'])}} @lang('dashboard.totalsales')

@if(!empty($totalpurchases)) {{$totalpurchases[0]->totalpurchases}} $ @else 0$ @endif


{{check($dayPurchases['yasterday'],$dayPurchases['today'])}} @lang('dashboard.totalpurchases')

@if(!empty($totalcustomers)) {{$totalcustomers[0]->customers}} @else 0 @endif


{{product($dayCustomers['yasterday'],$dayCustomers['today'])}} @lang('customers.title')

@lang('dashboard.analysis')
@lang('dashboard.analysisTop')
@lang('dashboard.lastcustomer')
@if(!empty($customers)) @foreach($customers as $cust) @endforeach @endif
# @lang('customers.name') @lang('customers.address') @lang('customers.phone') @lang('customers.info') @lang('customers.date')
{{ $cust->id }} {{ $cust->name }} {{ $cust->address }} {{ $cust->phone }} {{ date('F j, Y', strtotime($cust->created_at)) }}
@if(!empty($customers))
@foreach($note as $no)

{{$no->name}}

{{$no->created_at}}
@endforeach @endif
@endsection