@extends('layouts.app') @section('title', config('app.name') . ' - Informasi Merchant') @php $hasLocation = filled($merchant->latitude ?? null) && filled($merchant->longitude ?? null) && is_numeric($merchant->latitude) && is_numeric($merchant->longitude); $latitude = $hasLocation ? (float) $merchant->latitude : null; $longitude = $hasLocation ? (float) $merchant->longitude : null; $photoUrl = !empty($merchant->merchant_photo) ? asset($merchant->merchant_photo) : asset('assets/images/no_image.png'); @endphp @section('content') @if ($hasLocation) @endif
Foto Merchant

{{ $merchant->name }}

{{ ($merchant->merchant_status ?? '0') == '1' ? 'Sudah Konfirmasi' : 'Belum Konfirmasi' }} @if (!empty($merchant->merchant_category))

{{ $merchant->merchant_category }} @if (!empty($merchant->merchant_sub_category)) — {{ $merchant->merchant_sub_category }} @endif

@endif
Informasi Merchant
Nama Merchant
{{ $merchant->name }}
Email
{{ $merchant->email }}
Nomor HP
{{ $merchant->phone ?? '-' }}
Kategori
@if (!empty($merchant->merchant_category)) {{ $merchant->merchant_category }} @if (!empty($merchant->merchant_sub_category)) — {{ $merchant->merchant_sub_category }} @endif @else - @endif
Deskripsi
{{ $merchant->description ?? '-' }}
Tanggal Bergabung
{{ isset($merchant->created_at) ? \Carbon\Carbon::parse($merchant->created_at)->format('d M Y') : '-' }}
Kota
{{ $merchant->city ?? '-' }}
Negara
{{ $merchant->country ?? '-' }}
Latitude
{{ $hasLocation ? $latitude : '-' }}
Longitude
{{ $hasLocation ? $longitude : '-' }}
Kembali @if ($hasLocation) Buka di Google Maps @endif
Lokasi Merchant
@if ($hasLocation) @endif
@if ($hasLocation)
@else

Koordinat lokasi belum tersedia untuk merchant ini.

@endif
@endsection @push('scripts') @if ($hasLocation) @endif @endpush