@include('partials.vendor-assets')

{{ $menu?->menu_name ?? 'หน้าหลัก' }}

ผู้ใช้งาน {{ auth()->user()->name }}

@csrf
@yield('content')
@php $toastMessages = collect(); if (session('status')) { $toastMessages->push(['type' => 'success', 'text' => session('status')]); } foreach ($errors->all() as $errorMessage) { $toastMessages->push(['type' => 'error', 'text' => $errorMessage]); } @endphp @if ($toastMessages->isNotEmpty())
@foreach ($toastMessages as $toast)

{{ $toast['text'] }}

@endforeach
@endif