@extends('dashboard.layouts.master') @section('title', 'Dashboard') @push('after-styles') @endpush @section('content')

{{ __('backend.hi') }} {{ Auth::user()->name }} , {{ __('backend.welcomeBack') }}

@csrf
{{-- 9. Account --}}
{{-- SECTION 2: Summary Cards --}}

Performance Summary

{{-- Row 1: 3 cards --}} {{-- Row 2: Revenue + Pending --}} {{-- SECTION 3: Advanced Analytics Charts --}}

Advanced Analytics

Country Distribution

City Distribution

Daily Active Users (DAU)

Business Growth

Redemption Trends

Loyalty Point Trends

{{-- SECTION 4: Performance Rankings --}}

Performance Rankings

Top Businesses

@foreach($top_businesses as $biz) @endforeach
Business NameRedemptions
{{ $biz->business_name }}{{ $biz->redemptions }}

Most Redeemed Offers

@foreach($top_offers as $off) @endforeach
Offer NameCount
{{ $off->reward_name }}{{ $off->count }}
{{-- SECTION 5: Live Business Activity Feed --}}

Activity Feed

Latest Updates

    @foreach($latest_offers as $offer)
  • Offer
    {{ $offer->title }}
    {{ $offer->description }}
    {{ \Carbon\Carbon::parse($offer->created_at)->diffForHumans() }}
  • @endforeach @foreach($latest_posts as $post)
  • {{ $post->business_name }} posted a new update
    {{ $post->caption }}
    {{ \Carbon\Carbon::parse($post->created_at)->diffForHumans() }}
  • @endforeach
@endsection @push('after-scripts') @endpush