@extends('admin.layouts.dashboard') @section('title', 'Partner Details') @section('content') @php $partnerName = $partner->company_name ?: $partner->name; @endphp

Partner Details

View complete partner information and map details.

Back to Partners

Business Name

{{ $partnerName }}

Business Type

{{ ucfirst($partner->business_type ?: 'other') }}

Contact Person

{{ $partner->contact_person ?: 'N/A' }}

Phone

{{ $partner->phone_number ?: 'N/A' }}

Email

{{ $partner->email }}

Active Offers

{{ $partner->offers_count }}

Address

{{ $partner->business_address ?: 'N/A' }}

Description

{{ $partner->business_description ?: 'N/A' }}

Google Map URL

@if($partner->map_location_url){{ $partner->map_location_url }}@else

N/A

@endif

Map Latitude

{{ $partner->map_lat ?? 'N/A' }}

Map Longitude

{{ $partner->map_lng ?? 'N/A' }}

Branch Locations

@forelse ($partner->locations as $location)

{{ $location->label ?: 'Branch' }}

@if ($location->is_primary) Primary @endif

Logo

@php $logoPath = $location->business_logo ?: $partner->business_logo; @endphp @if ($logoPath) {{ $location->label ?: 'Branch' }} logo @else

No logo

@endif

Store Image

@php $imagePath = $location->business_image ?: $partner->business_image; @endphp @if ($imagePath) {{ $location->label ?: 'Branch' }} image @else

No image

@endif

{{ $location->address }}

Open Map
@empty

No branch locations found.

@endforelse
Edit Partner
@csrf @method('delete')
@endsection