From ad2644f57e8791fdaf3ea6083570bb1e2e497a62 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Fri, 15 Nov 2024 09:49:34 +0700 Subject: [PATCH] Tambah halaman untuk pembuatan dan daftar hari libur Telah ditambahkan halaman baru untuk pembuatan (create.blade.php) dan daftar (index.blade.php) hari libur. Halaman pembuatan mencakup form untuk menambah atau mengedit hari libur, sementara halaman daftar mendukung fitur pencarian dan penghapusan data hari libur. --- .../views/holidaycalendar/create.blade.php | 73 ++++++++ .../views/holidaycalendar/index.blade.php | 158 ++++++++++++++++++ 2 files changed, 231 insertions(+) create mode 100644 resources/views/holidaycalendar/create.blade.php create mode 100644 resources/views/holidaycalendar/index.blade.php diff --git a/resources/views/holidaycalendar/create.blade.php b/resources/views/holidaycalendar/create.blade.php new file mode 100644 index 0000000..46dc095 --- /dev/null +++ b/resources/views/holidaycalendar/create.blade.php @@ -0,0 +1,73 @@ +@extends('layouts.main') + +@section('breadcrumbs') + {{ Breadcrumbs::render(request()->route()->getName()) }} +@endsection + +@section('content') +
+ @if(isset($holidayCalendar->id)) +
+ + @method('PUT') + @else + + @endif + @csrf +
+
+

+ {{ isset($holidayCalendar->id) ? 'Edit' : 'Tambah' }} Hari Libur +

+
+ Back +
+
+
+
+ +
+ + @error('date') + {{ $message }} + @enderror +
+
+
+ +
+ + @error('description') + {{ $message }} + @enderror +
+
+
+ +
+ + @error('type') + {{ $message }} + @enderror +
+
+
+ +
+
+
+
+
+@endsection diff --git a/resources/views/holidaycalendar/index.blade.php b/resources/views/holidaycalendar/index.blade.php new file mode 100644 index 0000000..de480b0 --- /dev/null +++ b/resources/views/holidaycalendar/index.blade.php @@ -0,0 +1,158 @@ +@extends('layouts.main') + +@section('breadcrumbs') + {{ Breadcrumbs::render('basicdata.holidaycalendar') }} +@endsection + +@section('content') +
+
+
+

+ Daftar Hari Libur +

+ +
+
+
+ + + + + + + + + + +
+ + + Tanggal + + + Deskripsi + + + Tipe + + Action
+
+ +
+
+
+@endsection + +@push('scripts') + + +@endpush