@extends('admin.layouts.layout') @section('title', 'View Agency: ' . $agency->name) @section('content')

View Agency: {{ $agency->name }}

@if($permission['edit'] ?? true) Edit Agency @endif @if($permission['index'] ?? true) Back to Agency List @endif
Agency Details
@php $avatarThumb = isset($agency->avatar['thumb']) ? $agency->avatar['thumb'] : null; @endphp @if($avatarThumb) Agency Avatar @else
@php $name = $agency->name ?? ''; $words = explode(' ', $name); $initials = ''; $count = 0; foreach ($words as $word) { if (!empty($word) && $count < 2) { $initials .= mb_substr($word, 0, 1); $count++; } } echo strtoupper($initials); @endphp
@endif
Agency Name: {{ $agency->name ?? 'N/A' }}
Company Name: {{ $agency->company_name ?? 'N/A' }}
Secondary Email: @if($agency->secondary_email) {{ $agency->secondary_email }} @else N/A @endif
Website: @if($agency->website) {{ $agency->website }} @else N/A @endif
Office Phone: {{ $agency->office_phone ?? 'N/A' }}
Mobile Phone: {{ $agency->mobile_phone ?? 'N/A' }}
Fax: {{ $agency->fax ?? 'N/A' }}
Status: @if($agency->is_active) Active @else Inactive @endif
Created: {{ $agency->created_at ? $agency->created_at->format('M d, Y \a\t h:i A') : 'N/A' }}
@if(!empty($agency->address) || !empty($agency->city) || !empty($agency->state) || !empty($agency->country) || !empty($agency->zip))
Address Information
Address: {{ $agency->address ?? 'N/A' }}
City: {{ $agency->city ?? 'N/A' }}
State: {{ $agency->state ?? 'N/A' }}
Country: {{ $agency->country ?? 'N/A' }}
ZIP Code: {{ $agency->zip ?? 'N/A' }}
@if(!empty($agency->latitude) && !empty($agency->longitude))
Coordinates: {{ $agency->latitude }}, {{ $agency->longitude }}
@endif
@endif @if(!empty($agency->notes))
Notes

{{ $agency->notes }}

@endif
@endsection