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, 'penerbit' => $document->publisher,
'tipe' => $document->type == Document::TYPE_TETAP ? 'Tetap' : 'Tidak Tetap', 'tipe' => $document->type == Document::TYPE_TETAP ? 'Tetap' : 'Tidak Tetap',
'tanggal terbit' => $document->publish_date->format('d-m-Y'), '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, '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', 'status' => $document->status == Document::STATUS_YES ? 'Ya' : 'Tidak',
'catatan' => $document->due_status, 'catatan' => $document->due_status,
]); ]);

@ -140,6 +140,7 @@ export default function FormDocument(props) {
readOnly={true} readOnly={true}
/> />
</div> </div>
{doc.due_date !== null && (
<div className='mt-4'> <div className='mt-4'>
<InputLabel forInput="due_date" value="Tanggal Jatuh Tempo" /> <InputLabel forInput="due_date" value="Tanggal Jatuh Tempo" />
<TextInput <TextInput
@ -151,6 +152,7 @@ export default function FormDocument(props) {
readOnly={true} readOnly={true}
/> />
</div> </div>
)}
<div className='mt-4'> <div className='mt-4'>
<InputLabel forInput="description" value="Keterangan" /> <InputLabel forInput="description" value="Keterangan" />
<TextInput <TextInput

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

Loading…
Cancel
Save