main
Ilham Wara Nugroho 2026-03-04 09:22:21 +07:00
parent ee48ee92ef
commit 4659326acc
1 changed files with 9 additions and 3 deletions

View File

@ -106,9 +106,15 @@
</div>
</div>
<div class="flex flex-row md:flex-col justify-end gap-2 md:w-32">
<a href="{{url('opendata/dataset/download/'.encode_id(@$dataSet->DatasetId))}}" class="flex-1 md:w-full bg-blue-600 text-white py-2 px-4 rounded-xl text-sm font-bold hover:bg-blue-700 transition-all flex items-center justify-center">
<i data-lucide="download" class="w-4 h-4 mr-2"></i> Unduh
</a>
@if($dataset->tahun >= 2026)
<a href="{{url('opendata/dataset/download/'.encode_id(@$dataSet->DatasetId))}}" class="flex-1 md:w-full bg-blue-600 text-white py-2 px-4 rounded-xl text-sm font-bold hover:bg-blue-700 transition-all flex items-center justify-center">
<i data-lucide="download" class="w-4 h-4 mr-2"></i> Unduh
</a>
@else
<a href="{{asset('uploads/'.@$dataset->file)}}" class="flex-1 md:w-full bg-blue-600 text-white py-2 px-4 rounded-xl text-sm font-bold hover:bg-blue-700 transition-all flex items-center justify-center">
<i data-lucide="download" class="w-4 h-4 mr-2"></i> Unduh
</a>
@endif
<a href="{{ url('dataset/detail/'.encode_id($dataSet->DatasetId)) }}" class="flex-1 md:w-full border border-slate-200 text-slate-700 py-2 px-4 rounded-xl text-sm font-bold hover:bg-slate-50 transition-all flex items-center justify-center">
<i data-lucide="eye" class="w-4 h-4 mr-2"></i> Detail
</a>