@php
$img = $kostum->gambar ?? '';
$src = '';
if ($img) {
if (str_starts_with($img, 'http')) {
$src = $img;
} elseif (str_starts_with($img, 'storage/')) {
$src = asset($img);
} elseif (str_starts_with($img, 'public/')) {
$src = asset(str_replace('public/', 'storage/', $img));
} elseif ($img) {
$src = asset('storage/' . ltrim($img, '/'));
}
}
@endphp
@if($src)

@else
 }})
@endif
{{ $kostum->nama_kostum }}
@if($kostum->judul)
{{ $kostum->judul }}
@endif
Kategori: {{ $kostum->kategori }}
Brand: {{ $kostum->brand ?: '-' }}
Ukuran: {{ $kostum->ukuran_kostum }}
Harga Sewa: Rp {{ number_format((float)$kostum->harga_sewa, 0, ',', '.') }} / {{ $kostum->durasi_penyewaan }}
Domisili: {{ $kostum->domisili ?: '-' }}