@extends('layout.default', [ 'appClass' => 'app-content-full-height', 'appContentClass' => 'p-3' ]) @section('title', 'Mail Detail') @section('content') @php $folder = $folder ?? ($sideFolder ?? 'INBOX'); $isUnread = empty($seen); $attCount = is_array($attachments ?? null) ? count($attachments) : 0; // Sidebar pagination (جاية من الكنترولر) $sp = $sidePagination['page'] ?? 1; $sl = $sidePagination['limit'] ?? 30; // Helpers function buildQuery($folder, $sp, $sl, array $extra = []) { return array_filter(array_merge([ 'folder' => $folder, 'sp' => $sp, 'sl' => $sl, ], $extra), fn($v) => $v !== null && $v !== ''); } function inboxUrlDet($folder, $sp, $sl) { return route('email.inbox', buildQuery($folder, $sp, $sl)); } function attUrlDet($uid, $index, $folder) { $url = route('email.attachment', ['uid' => $uid, 'index' => $index]); return $folder ? ($url.'?folder='.urlencode($folder)) : $url; } @endphp
Back to {{ $folder }}
@csrf @if($folder)@endif
@csrf @if($folder)@endif
Reply
@include('email.partials.mini-inbox', [ 'sideItems' => $sideItems ?? [], 'sidePagination' => $sidePagination ?? ['page'=>1,'pages'=>1,'limit'=>30], 'sideFolder' => $sideFolder ?? $folder ?? 'INBOX', 'sideActiveUid' => $sideActiveUid ?? $uid ?? null, 'showPagination' => true, 'sidebarWidth' => 360, // initial 'minWidth' => 260, 'maxWidth' => 640, 'resizable' => true, // 'fullWidth' => false, // لو عايز تعطل العمود التاني وتخليها تاخد العرض كله، فعّل ده ])

{{ $subject ?? '(No subject)' }} @if($isUnread) New @endif @if($attCount > 0) {{ $attCount }} attachment{{ $attCount>1?'s':'' }} @endif

From
{{ $from ?: '(unknown)' }}
To
{{ $to ?: '—' }}
@if(!empty($cc))
Cc
{{ $cc }}
@endif @if(!empty($bcc))
Bcc
{{ $bcc }}
@endif
{{ $date ?? '' }}
Folder: {{ $folder }}
UID: {{ $uid }}
@endsection