@extends('layouts.admin') @section('content')

Dashboard

Total Customers

{{ $totalcustomer }}

View all

Active Categories

{{ $totalcategories }}

View all

Total Ads

{{ $totalads }}

View all

Popular Ads

{{ $totalPopularAds }}

View all

Categories

Latest Ads

View all
@foreach($recentAds as $index => $ad) @endforeach
Sl. No Ad ID Customer Name Customer Email Category City Amount Status Created On
{{ $index + 1 }} {{ $ad->ad_number }} {{ $ad->customer->first_name??'' }} {{ $ad->customer->first_name??'' }} {{ $ad->customer->email??'' }} {{ $ad->category->name_with_parent_category_name }} {{ $ad->city->name }} ${{ number_format($ad->price, 2) }} {{ $ad->status }} {{ $ad->created_at->format('d M Y') }}
@endsection @section('script') @php $categoriesLegends = []; $categoriesLegendValues = []; foreach($categoryWiseAds as $adCount) { $categoriesLegends[] = $adCount->name; $categoriesLegendValues[] = $adCount->total; } @endphp @endsection