@php $title = admin_trans('offers_by_status'); $description = 'View offers grouped by their current status'; $icon = 'tag'; @endphp @extends('admin.analytics.base') @section('analytics-content') @if($data->isEmpty()) @else
@php $total = $data->sum('total'); @endphp @foreach($data as $item) {{ ucfirst($item->status) }} {{ number_format($item->total) }} {{ $total > 0 ? round(($item->total / $total) * 100, 1) : 0 }}% @endforeach @endif @endsection @if(!$data->isEmpty()) @push('scripts') @endpush @endif