From 2120b3d07939683afc3f63c3b5a99cebb50d0c58 Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Fri, 15 Nov 2024 11:32:08 +0700 Subject: [PATCH] Perbaiki rute dan nama variabel pada form dan aksi edit Mengubah `holidayCalendar` menjadi `holiday` di variable form untuk konsistensi. Juga memperbaiki rute `href` pada view index agar sesuai dengan rute yang benar. --- .../views/holidaycalendar/create.blade.php | 123 +++++++++--------- .../views/holidaycalendar/index.blade.php | 2 +- 2 files changed, 64 insertions(+), 61 deletions(-) diff --git a/resources/views/holidaycalendar/create.blade.php b/resources/views/holidaycalendar/create.blade.php index 46dc095..37f0ee2 100644 --- a/resources/views/holidaycalendar/create.blade.php +++ b/resources/views/holidaycalendar/create.blade.php @@ -6,68 +6,71 @@ @section('content')
- @if(isset($holidayCalendar->id)) -
- + @if(isset($holiday->id)) + + @method('PUT') - @else - - @endif - @csrf -
-
-

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

-
- Back -
-
-
-
- -
- - @error('date') - {{ $message }} - @enderror + @else + + @endif + @csrf +
+
+

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

+
+ Back +
+
+
+
+ +
+ + @error('date') + {{ $message }} + @enderror +
+
+
+ +
+ + @error('description') + {{ $message }} + @enderror +
+
+
+ +
+ + @error('type') + {{ $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 index de480b0..feaf774 100644 --- a/resources/views/holidaycalendar/index.blade.php +++ b/resources/views/holidaycalendar/index.blade.php @@ -136,7 +136,7 @@ title: 'Action', render: (item, data) => { return `