@extends('dashboard.admin.layouts.master') @php $money = fn ($amount) => number_format((float) $amount, 2); $typeColors = ['visit' => 'primary', 'online' => 'info', 'followup' => 'warning']; $chart = [ 'labels' => $report['chart']['labels'], 'series' => collect($report['chart']['series'])->map(fn ($s) => ['name' => trans('clinic.bookings.' . $s['key']), 'data' => $s['data'], 'color' => $typeColors[$s['key']]])->all(), ]; @endphp @section('toolbar') @include('dashboard.admin.clinic.reports.partials.header', ['title' => trans('clinic.reports_center.revenue')]) @endsection @section('content')