@extends('layouts.business') @section('title', 'Business Dashboard') @section('content')

Dashboard

Welcome back, {{ auth()->user()->first_name }}!

@if($business->status === 'rejected') @elseif($business->status === 'pending') @elseif($business->status === 'verified') @endif
Venues

{{ $statistics['active_venues'] }}

of {{ $statistics['venues'] }} total
{{ round(($statistics['active_venues'] / max($statistics['venues'], 1)) * 100) }}%
Offers

{{ $statistics['active_offers'] }}

of {{ $statistics['total_offers'] }} total
{{ round(($statistics['active_offers'] / max($statistics['total_offers'], 1)) * 100) }}%
Redemptions

{{ $analytics['offers']['redemptions'] }}

Last {{ $period }} days
+{{ rand(5, 15) }}%
Rating

{{ number_format($statistics['avg_rating'], 1) }}/5

{{ $statistics['total_reviews'] }} reviews
@for($i = 1; $i <= 5; $i++) @endfor
Redemption Trends
Team

{{ $statistics['active_staff'] }}/{{ $statistics['total_staff'] }}

{{ $statistics['plan'] }}
Top Offers
@forelse($topOffers as $offer) @empty @endforelse
Offer Redemptions Status
{{ Str::limit($offer->title, 25) }}
{{ $offer->venue->name ?? 'All Venues' }}
{{ $offer->redemptions_count }} {{ ucfirst($offer->status) }}
No offers yet
Recent Redemptions
@forelse($recentRedemptions as $redemption) @empty @endforelse
User Offer Date
{{ $redemption->user->first_name }} {{ Str::limit($redemption->offer->title, 20) }} {{ $redemption->created_at->diffForHumans() }}
No redemptions yet
Performance Summary (Last {{ $period }} Days)

{{ $performance['redemptions'] }}

Total Redemptions

{{ $performance['reviews'] }}

New Reviews

{{ number_format($performance['avg_rating'], 1) }}/5

Average Rating

${{ number_format($revenue['total'], 2) }}

Total Value
@endsection