@if($alternatifterbaik == null) @if($kost->count() == 0) {{--

Data tidak ditemukan

--}} @else @foreach ($kost as $data )
@if(Auth::check() != null) @php $cek = \App\Models\SimpanKost::where('id_user', Auth::user()->id)->where('id_kost', $data->id)->first(); @endphp @if($cek != null)
@else
@endif @else
@endif IMG-PRODUCT Detail
{{ $data->name }} Rp. {{ number_format($data->price) }} {{ $data->alamat }} {{ $data->fasilitas->name }}
@endforeach @endif @else @foreach ($alternatifterbaik as $data )
@if(Auth::check() != null) @php $cek = \App\Models\SimpanKost::where('id_user', Auth::user()->id)->where('id_kost', $data['data']->kost->id)->first(); @endphp @if($cek != null)
@else
@endif @else
@endif IMG-PRODUCT Detail
{{ $data['data']->kost->name }} Rp. {{ number_format($data['data']->kost->price) }} {{ $data['data']->kost->alamat }} {{ $data['data']->kost->fasilitas->name }}
@endforeach @endif