@extends('dashboard.admin.layouts.master') @php $t = fn (string $key, array $replace = []) => trans('core.notification_settings.' . $key, $replace); $matrix = [ ['doctor', 'database', 'doctor_in_app'], ['admins', 'database', 'admins_in_app'], ['patient', 'database', 'patient_in_app'], ['patient', 'push', 'patient_push'], ['patient', 'text', 'patient_text'], ]; $checked = fn (string $event, string $audience, string $channel) => (bool) old( "events.$event.$audience.$channel", data_get($config, "events.$event.$audience.$channel", false) ); $offsets = old('offsets') ?? collect($config['reminders']['offsets'])->map(fn ($minutes) => $minutes % 60 === 0 ? ['value' => $minutes / 60, 'unit' => 'hours'] : ['value' => $minutes, 'unit' => 'minutes'])->all(); $placeholders = ':patient :doctor :clinic :branch :date :time :type :site'; @endphp @section('toolbar')