main
Ilham Wara Nugroho 2025-12-05 09:17:45 +07:00
parent df59647ca9
commit 9c255fa96a
1 changed files with 41 additions and 39 deletions

View File

@ -62,47 +62,49 @@
</div>
</div>
</div>
<div class="grid grid-cols-3 gap-6 w-3/4">
@forelse($dataset as $dataSet)
<div class="bg-white rounded-[20px] shadow-lg p-5 py-10 gap-6 flex">
<div class="flex flex-col gap-3 items-center text-center">
<div class="flex flex-col items-center gap-3">
<img src="{{ asset('logodki.png') }}" alt="" width="50" class="">
{{-- <img src="{{ asset('uploads/'.@$dataSet->instansi->logo) }}" alt="" width="50" class=""> --}}
<h1 class="font-bold">{{ $dataSet->instansi->name }}</h1>
</div>
<div class="">
<h5 class="font-bold">{{ $dataSet->name }}</h5>
</div>
<div>
<p>{{ substr($dataSet->deskripsi,0,50) }}</p>
</div>
<div class="mt-1 flex flex-row gap-2 items-center">
<span class="rounded-full text-[10px] bg-[#E9811A] text-white px-2 py-1">{{$dataSet->tahun}}</span>
<span class="rounded-full text-[10px] hidden lg:block bg-[#E9811A] text-white px-2 py-1">{{ substr($dataSet->template->name,0,25) }}...</span>
</div>
<div class="w-full">
<a href="{{ url('dataset/detail/'.encode_id($dataSet->DatasetId)) }}" class="p-2 bg-[#103760] rounded-full flex items-center text-white justify-center">
Lihat Detail
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7" />
</svg>
</a>
</div>
</div>
{{-- <div class="flex items-center justify-between w-full hidden">
<div class="flex flex-col gap-3">
<div class="w-3/4">
<div class="grid grid-cols-3 gap-6">
@forelse($dataset as $dataSet)
<div class="bg-white rounded-[20px] shadow-lg p-5 py-10 gap-6 flex">
<div class="flex flex-col gap-3 items-center text-center">
<div class="flex flex-col items-center gap-3">
<img src="{{ asset('logodki.png') }}" alt="" width="50" class="">
{{-- <img src="{{ asset('uploads/'.@$dataSet->instansi->logo) }}" alt="" width="50" class=""> --}}
<h1 class="font-bold">{{ $dataSet->instansi->name }}</h1>
</div>
<div class="">
<h5 class="font-bold">{{ $dataSet->name }}</h5>
</div>
<div>
<p>{{ substr($dataSet->deskripsi,0,50) }}</p>
</div>
<div class="mt-1 flex flex-row gap-2 items-center">
<span class="rounded-full text-[10px] bg-[#E9811A] text-white px-2 py-1">{{$dataSet->tahun}}</span>
<span class="rounded-full text-[10px] hidden lg:block bg-[#E9811A] text-white px-2 py-1">{{ substr($dataSet->template->name,0,25) }}...</span>
</div>
<div class="w-full">
<a href="{{ url('dataset/detail/'.encode_id($dataSet->DatasetId)) }}" class="p-2 bg-[#103760] rounded-full flex items-center text-white justify-center">
Lihat Detail
<svg xmlns="http://www.w3.org/2000/svg" class="w-5 h-5 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 5l7 7-7 7" />
</svg>
</a>
</div>
</div>
</div> --}}
</div>
@empty
<div class="bg-white rounded-[20px] shadow-lg p-5 py-10 gap-6 flex items-center justify-center ">
<h2 class="text-2xl">Data Tidak Ada</h2>
</div>
@endforelse
{{-- <div class="flex items-center justify-between w-full hidden">
<div class="flex flex-col gap-3">
</div>
</div> --}}
</div>
@empty
<div class="bg-white rounded-[20px] shadow-lg p-5 py-10 gap-6 flex items-center justify-center ">
<h2 class="text-2xl">Data Tidak Ada</h2>
</div>
@endforelse
</div>
{{ @$dataset ? @$dataset->links() : '' }}
</div>
</div>