@php $formatHours = function (?int $minutes): string { if ($minutes === null) { return __('Non renseigné'); } $minutes = max(0, (int) $minutes); $hours = intdiv($minutes, 60); $remainingMinutes = $minutes % 60; return $hours . 'h' . str_pad((string) $remainingMinutes, 2, '0', STR_PAD_LEFT); }; $formatNumber = fn (mixed $value): string => rtrim(rtrim(number_format((float) $value, 1, ',', ' '), '0'), ','); $screenTargetLines = [ ['label' => 'Limite', 'value' => data_get($phoneTargets, 'screen_minutes'), 'tone' => 'limit'], ]; $unlockTargetLines = [ ['label' => 'Limite', 'value' => data_get($phoneTargets, 'unlock_count'), 'tone' => 'limit'], ]; $screenTargetLabel = data_get($phoneTargets, 'screen_minutes') === null ? '—' : $formatHours(data_get($phoneTargets, 'screen_minutes')); $unlockTargetLabel = data_get($phoneTargets, 'unlock_count') === null ? '—' : data_get($phoneTargets, 'unlock_count') . ' déverr.'; @endphp

{{ __('Suivi quotidien') }}

{{ __('Téléphone') }}

@foreach ([7, 30, 90] as $periodOption) {{ trans_choice('ui.common.days', $periodOption, ['count' => $periodOption]) }} @endforeach {{ __('Retour dashboard') }}
@if (session('status'))
{{ session('status') }}
@endif
@include('partials.phone-usage-form', ['modalName' => 'phone-usage-modal'])