46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<!doctype html>
|
|
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>@yield('title', $title ?? 'Dashboard') - {{ config('app.name') }}</title>
|
|
|
|
@vite(['resources/css/app.css', 'resources/js/app.js'])
|
|
</head>
|
|
<body>
|
|
@include('layouts.navigation')
|
|
|
|
<main class="page-shell">
|
|
<div class="container-fluid px-3 px-md-4">
|
|
@if (session('status'))
|
|
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
|
{{ session('status') }}
|
|
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Tutup"></button>
|
|
</div>
|
|
@endif
|
|
|
|
@if ($errors->any())
|
|
<div class="alert alert-danger" role="alert">
|
|
<div class="fw-semibold mb-1">Sila semak maklumat borang.</div>
|
|
<ul class="mb-0">
|
|
@foreach ($errors->all() as $error)
|
|
<li>{{ $error }}</li>
|
|
@endforeach
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
|
|
@isset($slot)
|
|
{{ $slot }}
|
|
@else
|
|
@yield('content')
|
|
@endisset
|
|
</div>
|
|
</main>
|
|
|
|
@stack('scripts')
|
|
</body>
|
|
</html>
|