@extends('backend.partials.master') @section('title') Dashboard @endsection @section('maincontent')
@if(auth()->user()->user_type == 1)

Customer Dashboard

@else

Admin Dashboard

@endif
Renewal Date

@if(auth()->user()->renewal_date && auth()->user()->user_type == 1 ) {{ \Carbon\Carbon::parse(auth()->user()->renewal_date)->format('d-m-Y') }} @else - @endif

{{--
-3.65% Since last week
--}}
Inwards

{{number_format($total_inwards)}}

{{--
5.25% Since last week
--}}
Total Pending

Rs. {{number_format($totalPending,2)}}

{{--
6.65% Since last week
--}}
Outwards

{{number_format($total_Outwards)}}

{{--
-2.25% Since last week
--}}
@if($userType != 1)
Warehouse Usage
Occupied {{ warehousegraph('total_sqfts') - warehousegraph('rem_sqft') }}
Remaining {{ warehousegraph('rem_sqft') }}
{{-- Customers --}}
Top Customers
@foreach($TopCustomers as $cust) @endforeach
Name Max sqft
{{$cust->customername->name}}
{{$cust->max_sqft}}
@else @endif
@if($userType != 1) @endif
@endsection {{-- warehouse Graph --}}