Commit 2fa52189 by Alfiro Pratama

Fix kondisi proposalUrl

parent cd38bd41
......@@ -178,7 +178,7 @@ class ProposalController extends Controller
<tr>
<th>Video Produk</th>
<td>';
if ($record->url) {
if ($record->url && $record->url !== '-') {
$aksi .= '<button id="preview-video' . $record->id . '" class="btn btn-success btn-sm" data-video="' . $record->url . '">
<i class="far fa-eye"></i> Lihat Video
</button>';
......
......@@ -168,7 +168,7 @@
<tr>
<th>Video Produk</th>
<td>
@if($item->upload_dokumen)
@if($item->rProposalUrl && $item->rProposalUrl->url && $item->rProposalUrl->url !== '-')
{{-- @php
@dd($item->rProposalUrl->url);
@endphp --}}
......
......@@ -62,10 +62,18 @@
<div class="col-sm-10">
<ul>
@foreach ($proposal->proposalUrl as $item)
@if($item->url && $item->url !== '-')
<li>
<a class="btn btn-link" href="{{ $item->url }}">{{ $item->url_name }}</a>
<p>{{ $item->deskripsi }}</p>
</li>
@else
<li>
<div class="alert alert-danger mb-0" role="alert">
<strong>Informasi!</strong> File tidak ditemukan.
</div>
</li>
@endif
@endforeach
</ul>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment