@php use App\Helpers\ActionHelper; use Carbon\Carbon; use Illuminate\Support\Str; $hiddenReportDates = \App\Models\Report::where('client_id', $client->id) ->where('is_hidden', true) ->pluck('date') ->map(fn($d) => $d instanceof \Carbon\Carbon ? $d->format('Y-m-d') : (string) $d) ->toArray(); $isAdministrator = auth()->user()->isSuperAdmin(); @endphp @extends('layouts.app') @section('title', __('clients.show_title')) @section('breadcrumbs') @include('components.breadcrumbs', ['items' => [ ['title' => $client->name, 'active' => true] ]]) @endsection @section('content')