@extends('layouts.admin-modern') @section('title', 'Paramètres de notifications') @section('page-title', 'Paramètres de notifications') @section('content') @if(session('success'))
{{ session('success') }}
@endif
@csrf @method('PUT')
@php $types = [ 'new_booking' => 'Nouvelle réservation', 'booking_confirmed' => 'Réservation confirmée', 'booking_cancelled' => 'Réservation annulée', 'new_message' => 'Nouveau message', 'new_review' => 'Nouvel avis', 'payment_received' => 'Paiement reçu', 'withdrawal_processed' => 'Retrait traité', ]; @endphp @foreach($types as $type => $label) @endforeach
Type de notification Email SMS Push
{{ $label }} firstWhere('type', $type)?->email_enabled ?? true) ? 'checked' : '' }} class="w-4 h-4 text-blue-600 rounded"> firstWhere('type', $type)?->sms_enabled ?? false) ? 'checked' : '' }} class="w-4 h-4 text-blue-600 rounded"> firstWhere('type', $type)?->push_enabled ?? true) ? 'checked' : '' }} class="w-4 h-4 text-blue-600 rounded">
@endsection