⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.142
Server IP:
217.76.53.76
Server:
Linux vmi1397931.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
Server Software:
Apache
PHP Version:
8.2.27
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
wwwroot
/
jumo.com.ng
/
resources
/
views
/
frontend
/
Edit File: map.blade.php
{{-- @if($type == 'car' || $type == 'beauty' || $type == 'hotel' || $type == 'real-estate' || $type == 'restaurant') @php $coordinates = []; @endphp @foreach ($listings as $listing) @php $images = json_decode($listing->image, true); $image = isset($images[0]) ? asset('uploads/listing-images/' . $images[0]) : asset('image/placeholder.png'); $latitude = $listing->Latitude; $longitude = $listing->Longitude; // $country = $listing->country; $country = App\Models\Country::where('id', $listing->country)->first(); $city = App\Models\City::where('id', $listing->city)->first(); $name = $listing->title ?? ''; if ($latitude && $longitude) { $coordinates[] = [ 'latitude' => $latitude, 'longitude' => $longitude, 'name' => $name, 'image' => $image, 'country' => $country->name, 'city' => $city->name ]; } @endphp @endforeach @endif --}} @if($type == 'car' || $type == 'beauty' || $type == 'hotel' || $type == 'real-estate' || $type == 'restaurant') @php $coordinates = []; @endphp @foreach ($listings as $listing) @php $images = json_decode($listing->image, true); $image = isset($images[0]) ? asset('uploads/listing-images/' . $images[0]) : asset('image/placeholder.png'); $latitude = $listing->Latitude; $longitude = $listing->Longitude; $country = App\Models\Country::find($listing->country); $city = App\Models\City::find($listing->city); $name = $listing->title ?? ''; if ($latitude && $longitude) { $coordinates[] = [ 'latitude' => $latitude, 'longitude' => $longitude, 'name' => $name, 'image' => $image, 'country' => $country->name ?? '', 'city' => $city->name ?? '' ]; } @endphp @endforeach @else @php $coordinates = []; @endphp @foreach ($listings as $listing) @php $images = json_decode($listing->image, true); $image = isset($images[0]) ? asset('uploads/listing-images/' . $images[0]) : asset('image/placeholder.png'); $latitude = $listing->Latitude ?? null; $longitude = $listing->Longitude ?? null; $country = App\Models\Country::find($listing->country); $city = App\Models\City::find($listing->city); $name = $listing->title ?? ''; if ($latitude && $longitude) { $coordinates[] = [ 'latitude' => $latitude, 'longitude' => $longitude, 'name' => $name, 'image' => $image, 'country' => $country->name ?? '', 'city' => $city->name ?? '' ]; } @endphp @endforeach @endif
{{-- --}}
Simpan