@extends('admin.layouts.app')
@section('title', $title ?? admin_trans('analytics'))
@section('page-title', $title ?? admin_trans('analytics'))
@section('content')
{{ $title }}
@if(isset($description))
{{ $description }}
@endif
@if(isset($headerActions))
{!! $headerActions !!}
@endif
@if(isset($stats) && count($stats) > 0)
@foreach($stats as $stat)
{{ $stat['label'] }}
{{ $stat['value'] }}
@if(isset($stat['change']))
{{ $stat['change'] >= 0 ? '+' : '' }}{{ $stat['change'] }}%
@endif
@if(isset($stat['icon']))
@endif
@endforeach
@endif
@yield('analytics-content')
@endsection