@extends('admin.layouts.master') @section('contents') @if(isset($error))
{{ $error }}
@else @can('view_dashboard')
@include('admin.dashboard._date-filter') @include('admin.dashboard._action-required') @if(!empty($kpis))
@foreach($kpis as $kpi)
@include('admin.dashboard._stat-card', [ 'label' => $kpi['label'], 'value' => $kpi['value'], 'sub' => $kpi['sub'] ?? null, 'sub_url' => $kpi['sub_url'] ?? null, 'icon' => $kpi['icon'], 'color' => $kpi['color'], 'url' => $kpi['url'] ?? null, 'size' => 'lg', ])
@endforeach
@endif @include('admin.dashboard._financial-summary') @if(!empty($projectBreakdown) || !empty($offerBreakdown))
@if(!empty($projectBreakdown))
@include('admin.dashboard._status-breakdown', [ 'title' => __('Project Status Distribution'), 'breakdown' => $projectBreakdown, ])
@endif @if(!empty($offerBreakdown))
@include('admin.dashboard._status-breakdown', [ 'title' => __('Offer Status Distribution'), 'breakdown' => $offerBreakdown, ])
@endif
@endif @if(!empty($charts))

{{ $charts['title'] ?? __('Projects & Offers') }} — {{ $dateRangeLabel ?? '' }}

@if(!empty($topCategories) && $topCategories->isNotEmpty())

{{ __('Top Project Categories') }}

@endif
@endif @include('admin.dashboard._recent-activity')
@endcan @endif @endsection @section('css') @endsection @section('scripts') @if(!empty($charts)) @endif @endsection