@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
{{ e($text) }}
@else