change-request
ajikamaludin 2 years ago
parent 6184ab71c5
commit ca499f9111
Signed by: ajikamaludin
GPG Key ID: 476C9A2B4B794EBB

@ -243,9 +243,9 @@ class DocumentController extends Controller
'penerbit' => $document->publisher,
'tipe' => $document->type == Document::TYPE_TETAP ? 'Tetap' : 'Tidak Tetap',
'tanggal terbit' => $document->publish_date->format('d-m-Y'),
'tanggal jatuh tempo' => $document->due_date->format('d-m-Y'),
'tanggal jatuh tempo' => $document->due_date?->format('d-m-Y'),
'keterangan' => $document->description,
'file' => asset('documents/'.$document->document),
'file' => $document->document != null ? asset('documents/'.$document->document) : null,
'status' => $document->status == Document::STATUS_YES ? 'Ya' : 'Tidak',
'catatan' => $document->due_status,
]);

@ -140,17 +140,19 @@ export default function FormDocument(props) {
readOnly={true}
/>
</div>
<div className='mt-4'>
<InputLabel forInput="due_date" value="Tanggal Jatuh Tempo" />
<TextInput
type="text"
name="due_date"
value={formatDate(doc.due_date)}
className="mt-1 block w-full"
autoComplete={"false"}
readOnly={true}
/>
</div>
{doc.due_date !== null && (
<div className='mt-4'>
<InputLabel forInput="due_date" value="Tanggal Jatuh Tempo" />
<TextInput
type="text"
name="due_date"
value={formatDate(doc.due_date)}
className="mt-1 block w-full"
autoComplete={"false"}
readOnly={true}
/>
</div>
)}
<div className='mt-4'>
<InputLabel forInput="description" value="Keterangan" />
<TextInput

@ -53,7 +53,11 @@
<td style="width: 7%;">{{ $collec["tanggal jatuh tempo"] }}</td>
<td >{{ $collec["keterangan"] }}</td>
<td >
@if($collec["file"] != null)
<a href='{{ $collec["file"] }}'>Download</a>
@else
Belum ada file
@endif
</td>
<td >{{ $collec["status"] }}</td>
<td >{{ $collec["catatan"] }}</td>

Loading…
Cancel
Save