link ke profil
This commit is contained in:
@@ -4,6 +4,15 @@
|
|||||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
|
||||||
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
|
integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY="
|
||||||
crossorigin=""/>
|
crossorigin=""/>
|
||||||
|
<style>
|
||||||
|
.clickable-row {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.clickable-row:hover {
|
||||||
|
background-color: rgba(0, 0, 0, 0.03);
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
@section('content')
|
@section('content')
|
||||||
@@ -388,7 +397,7 @@ $mapDesaSegmentasi = $segmentasiByDesa->map(function ($segmentasi, $desaId) use
|
|||||||
@php
|
@php
|
||||||
$style = $segmentStyles[$item->segmen()] ?? null;
|
$style = $segmentStyles[$item->segmen()] ?? null;
|
||||||
@endphp
|
@endphp
|
||||||
<tr data-desa="{{ $item->desa_kelurahan_id }}">
|
<tr data-desa="{{ $item->desa_kelurahan_id }}" data-url="{{ route('dashboard.profil-petani', $item->id) }}" class="clickable-row">
|
||||||
<td class="pe-0">{{ $item->nama }}</td>
|
<td class="pe-0">{{ $item->nama }}</td>
|
||||||
<td class="pe-0">{{ $item->desaKelurahan?->nama }}</td>
|
<td class="pe-0">{{ $item->desaKelurahan?->nama }}</td>
|
||||||
<td class="pe-0">{{ $item->komoditas?->nama }}</td>
|
<td class="pe-0">{{ $item->komoditas?->nama }}</td>
|
||||||
@@ -452,6 +461,8 @@ $mapDesaSegmentasi = $segmentasiByDesa->map(function ($segmentasi, $desaId) use
|
|||||||
"autoWidth": false,
|
"autoWidth": false,
|
||||||
"responsive": false,
|
"responsive": false,
|
||||||
"scrollX": true
|
"scrollX": true
|
||||||
|
}).on('click', 'tbody tr', function () {
|
||||||
|
window.location.href = $(this).data('url');
|
||||||
});
|
});
|
||||||
|
|
||||||
let selectedDesa = null;
|
let selectedDesa = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user