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

Call Details - {{ $school->school_name }}

Payment Planning Task: {{ $task->title }}

Make New Call Back to Details
@include('partials.alerts')

{{ $school->school_name }}

@if($school->contact_numbers && count($school->contact_numbers) > 0) @foreach($school->contact_numbers as $contact) @php $contactData = is_array($contact) ? $contact : ['number' => $contact, 'name' => '', 'position' => '']; @endphp

@if(!empty($contactData['name'])) {{ $contactData['name'] }} @if(!empty($contactData['position'])) ({{ $contactData['position'] }}) @endif
@endif {{ $contactData['number'] ?? $contact }}
@endforeach @else - @endif

Call History
@if($callData->count() > 0)
@foreach($callData as $call) @endforeach
Call Date Call Status Contact Person Called By Payment Request Next Call Date Payment Method Payment Date Action
{{ $call->called_date ? \Carbon\Carbon::parse($call->called_date)->format('d M Y') : '-' }} @if($call->call_status) {{ $call->call_status }} @else - @endif {{ $call->contact_person ?? '-' }} {{ $call->called_by ?? '-' }} @if($call->payment_request) {{ $call->payment_request }} @else - @endif @if($call->next_call_date) {{ \Carbon\Carbon::parse($call->next_call_date)->format('d M Y') }} @else - @endif @if($call->payment_method) {{ $call->payment_method }} @else - @endif @if($call->payment_date) {{ \Carbon\Carbon::parse($call->payment_date)->format('d M Y') }} @else - @endif
@else

No call data available for this school.

Make First Call
@endif
@endsection