@extends('member.layouts.app') @section('title', 'Partner Profile') @section('content') @php $partnerName = $partner->company_name ?: $partner->name; $businessType = $partner->business_type ? ucfirst($partner->business_type) : 'Partner'; $logo = $partner->business_logo ? asset('storage/' . $partner->business_logo) : null; @endphp

Partner Profile

Detailed information about {{ $partnerName }}.

Back to Partners
@if ($logo) {{ $partnerName }} @endif
Verified Partner

{{ $partnerName }}

Category: {{ $businessType }}

{{ $partner->business_description ?: 'This partner is part of the SaveSmart network and accepts SaveSmart member cards.' }}

Address

{{ $partner->business_address ?: 'Not provided' }}

Phone

{{ $partner->phone_number ?: 'Not provided' }}

Contact Person

{{ $partner->contact_person ?: 'Not provided' }}

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' }} store image @else

No image

@endif

{{ $location->address }}

Open branch map
@empty

No branch locations available yet.

@endforelse
@if ($partner->map_location_url) Open in Google Maps @endif View on Partners Map
@endsection