update: change path on edit matarial modal
This commit is contained in:
parent
b2196ba1c1
commit
ecf9c3db52
|
|
@ -20,15 +20,10 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
<label for="currentFile" class="form-label">File Saat Ini</label>
|
<label class="form-label">File Saat Ini</label>
|
||||||
@if (!empty($material->file_path) && file_exists(public_path($material->file_path)))
|
<div class="form-control bg-light">
|
||||||
<a href="{{ asset($material->file_path) }}" target="_blank"
|
{{ $material->file_path ? basename($material->file_path) : '-' }}
|
||||||
class="text-blue-500 hover:underline">
|
</div>
|
||||||
Lihat File: {{ basename($material->file_path) }}
|
|
||||||
</a>
|
|
||||||
@else
|
|
||||||
<p class="text-gray-600">Tidak ada file.</p>
|
|
||||||
@endif
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mb-3">
|
<div class="mb-3">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user