Viewing file: notifications.blade.php (2.33 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.admin')
@section('title', __('Notification Details'))
@section('extra-css') <style> .email-container { max-width: 700px; margin: 2rem auto; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 8px rgb(0 0 0 / 0.1); overflow: hidden; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #fff; } .email-header { background-color: #1e40af; /* nice deep blue */ color: white; padding: 1rem 1.5rem; font-size: 1.25rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; } .email-info { padding: 1rem 1.5rem; border-bottom: 1px solid #e2e8f0; display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: 0.95rem; color: #444; } .email-info div { flex: 1 1 200px; } .email-info .label { font-weight: 600; color: #1e40af; margin-bottom: 0.25rem; display: block; } .email-body { padding: 1.5rem; white-space: pre-line; font-size: 1rem; line-height: 1.6; color: #222; background-color: #f9fafb; } .email-footer { padding: 1rem 1.5rem; font-size: 0.9rem; color: #666; border-top: 1px solid #e2e8f0; text-align: right; font-style: italic; } </style> @endsection
@section('content') <section class="content"> <div class="email-container">
<div class="email-header"> {{ __('Notification Details') }} </div>
<div class="email-info"> <div> <span class="label">{{ __('Subject') }}</span> <span>{{ $notification->subject ?: __('Notification') }}</span> </div> <div> <span class="label">{{ __('To') }}</span> <span>{{$notification->user->fullName}} <{{$notification->user->email}}></span> {{-- demo to email --}} </div> </div>
<div class="email-body"> {{ $notification->details }} </div>
<div class="email-footer"> {{ __('Sent') }}: {{ \Carbon\Carbon::parse($notification->created_at)->diffForHumans() }} </div>
</div> </section> @endsection
|