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