@extends('layouts.backend.app') @section('title', 'Home') @section('content')
@if(auth()->user()->isAdmin())
Total Users
{{$users->count()}}
@endif
Total Bookings
{{$bookings->count()}}
Total Fee Paid
{{$bookings->sum('price')}}
Total Cars
{{$cars->count()}}
Latest Bookings
@forelse($bookings->take(10) as $booking) @empty @endforelse
# Name Email Phone Created At
{{ $booking->id }} {{ $booking->user->name }} {{ $booking->user->email }} {{ $booking->user->phone }} {{ $booking->created_at }}
No bookings found
@if(auth()->user()->isAdmin())
Latest Users
@forelse($users->take(10) as $user) @empty @endforelse
# Name Email Role Created At Updated At
{{ $user->id }} {{ $user->name }} {{ $user->email }} {{ $user->role() }} {{ $user->created_at }} {{ $user->updated_at }}
No users found
@endif
@endsection