@extends('layouts.app') @section('title', $school->name) @section('content')

{{ $school->name }}

Client profile & active issues

Edit Back to List
@include('partials.alerts')
Contact

Phone: {{ $school->contact_number ?? '—' }}

Email: {{ $school->contact_email ?? '—' }}

Address

{{ $school->address_line ?? '—' }}
{{ $school->city ? $school->city . ',' : '' }} {{ $school->state ?? '' }} {{ $school->postal_code ?? '' }}

Recent Issues
@forelse($school->issues->take(10) as $issue) @empty @endforelse
S.No Type Assigned Status
{{ $issue->serial_no }} {{ $issue->issueType?->name }} {{ $issue->assignee?->name ?? '—' }} @php $statusBadges = [ \App\Models\Issue::STATUS_NOT_STARTED => ['class' => 'warning', 'label' => 'Not Started'], \App\Models\Issue::STATUS_ASSIGNED => ['class' => 'info', 'label' => 'Assigned'], \App\Models\Issue::STATUS_IN_PROGRESS => ['class' => 'primary', 'label' => 'In Progress'], \App\Models\Issue::STATUS_COMPLETED => ['class' => 'success', 'label' => 'Completed'], ]; $statusInfo = $statusBadges[$issue->status] ?? ['class' => 'secondary', 'label' => ucfirst(str_replace('_', ' ', $issue->status))]; @endphp {{ $statusInfo['label'] }}
No issues recorded for this school.
@endsection