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

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

Tele-Marketing Task: {{ $task->title }}

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

{{ $school->school_name }}

{{ $school->contact_person ?? '-' }}

{{ $school->province ?? '-' }}

{{ $school->district ?? '-' }}

Call History
@if($callData->count() > 0)
@foreach($callData as $call) @endforeach
Call Date Call Status Call Responder Called By Existing System Future Planning Current Software Contact Numbers Location Action
{{ $call->called_date ? \Carbon\Carbon::parse($call->called_date)->format('d M Y') : '-' }} @if($call->call_status) {{ $call->call_status }} @else - @endif {{ $call->call_responder ?? '-' }} {{ $call->called_by ?? '-' }} {{ $call->existing_system ?? '-' }} {{ $call->future_planning ?? '-' }} {{ $call->current_software_name ?? '-' }} @if($call->contact_numbers && count($call->contact_numbers) > 0) @foreach($call->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
@if($call->location) {{ Str::limit($call->location, 50) }} @else - @endif
@else

No call data available for this school.

Make First Call
@endif
@endsection