@extends('layouts.app') @section('page-title', 'Gym Details') @section('content')

{{ $gym->name }}

Gym Name: {{ $gym->name }}
Status: @if($gym->is_active) Active @else Inactive @endif
Address (City): {{ $gym->city ?? 'N/A' }}
Timings: @if($gym->opening_time && $gym->closing_time) {{ \Carbon\Carbon::parse($gym->opening_time)->format('h:i A') }} - {{ \Carbon\Carbon::parse($gym->closing_time)->format('h:i A') }} @else N/A @endif
Payment Type: @if($gym->payment_type) {{ ucfirst($gym->payment_type) }} @if($gym->payment_type == 'rent' && $gym->rent_amount) - Rs {{ number_format($gym->rent_amount, 2) }}/month @elseif($gym->payment_type == 'bought') Sold @endif @else N/A @endif
Phone Number: {{ $gym->phone ?? 'N/A' }}
Additional Phone Number: {{ $gym->additional_phone ?? 'N/A' }}
Email: {{ $gym->users()->where('role', 'gym_owner')->first()?->email ?? 'N/A' }}
@if(auth()->user()->isSuperAdmin())
Password: @php $gymOwner = $gym->users()->where('role', 'gym_owner')->first(); $password = $gymOwner && $gymOwner->password_plaintext_encrypted ? decrypt($gymOwner->password_plaintext_encrypted) : null; @endphp @if($password)
••••••••
@else
@csrf
Password not set. Click reset to generate a new password. @endif
@endif
@endsection @push('scripts') @endpush