From 26009d796b53cee6ea5b3ab3236bd4418cc2a31b Mon Sep 17 00:00:00 2001 From: Daeng Deni Mardaeni Date: Thu, 31 Oct 2024 15:57:01 +0700 Subject: [PATCH] Add 'Keterangan' Column and Display Notes for Revision Added a 'Keterangan' column to the permohonan index view and updated relevant data bindings. Additionally, modified the form view to display notes if the status is 'revisi', and adjusted the submit button text accordingly. --- .../permohonan/authorization/show.blade.php | 2 +- resources/views/permohonan/form.blade.php | 35 ++++--------------- resources/views/permohonan/index.blade.php | 7 ++++ 3 files changed, 14 insertions(+), 30 deletions(-) diff --git a/resources/views/permohonan/authorization/show.blade.php b/resources/views/permohonan/authorization/show.blade.php index 41b247c..e8564e1 100644 --- a/resources/views/permohonan/authorization/show.blade.php +++ b/resources/views/permohonan/authorization/show.blade.php @@ -148,7 +148,7 @@ Catatan
- +
diff --git a/resources/views/permohonan/form.blade.php b/resources/views/permohonan/form.blade.php index 7c82edd..cfb066b 100644 --- a/resources/views/permohonan/form.blade.php +++ b/resources/views/permohonan/form.blade.php @@ -155,38 +155,15 @@ @enderror - -
- -
- - @error('status') - {{ $message }} - @enderror + @if($permohonan->status=='revisi') +
+ Catatan :
+ {{ $permohonan->keterangan }}
-
- - + @endif
diff --git a/resources/views/permohonan/index.blade.php b/resources/views/permohonan/index.blade.php index 5f38583..15819c7 100644 --- a/resources/views/permohonan/index.blade.php +++ b/resources/views/permohonan/index.blade.php @@ -63,6 +63,10 @@ Status + + Keterangan + + Action @@ -173,6 +177,9 @@ status: { title: 'Status' }, + keterangan: { + title: 'Keterangan' + }, actions: { title: 'Actions', render: (item, data) => {