@extends('layouts.page') @section('title') Followup Calls Report @endsection @section('navs') @endsection @section('content') {!! Form::open(['url' => route('pd_call_report.pd_report'), 'method' => 'get', 'id' => 'idForm']) !!} {!! Form::select('program', ['' => '- Program -'] + $programs, request('program'), ['class' => 'mr-3']) !!}  {!! Form::select('zone', ['' => '- Zone -'] + AppHelper::options('zones'), request('zone'), ['class' => 'mr-3']) !!}  {!! Form::label('next_followup_date_start', 'Next Follow-up Date: From') !!}  {!! Form::date('start_date', request('start_date', $start_date ?? null)) !!}  {!! Form::label('next_followup_date_end', 'To') !!}  {!! Form::date('end_date', request('end_date', $end_date ?? null)) !!}  {!! Form::select('project_status', ['' => '- Project Status -'] + AppHelper::options('project_followup_status'), request()->project_status, ['class' => 'mr-3']) !!}  {!! Form::submit('Get') !!} Reset  {!! Form::close() !!}
@if (request('program') == 'al' && isset($al_follow_up_calls) && is_iterable($al_follow_up_calls)) @foreach ($al_follow_up_calls as $call) @php $project = $call->project; @endphp @endforeach @elseif (request('program') == 'asc' && isset($asc_follow_up_calls) && is_iterable($asc_follow_up_calls)) @foreach ($asc_follow_up_calls as $call) @php $project = $call->project; @endphp @endforeach @elseif (request('program') == 'ict' && isset($ict_follow_up_calls) && is_iterable($ict_follow_up_calls)) @foreach ($ict_follow_up_calls as $call) @php $project = $call->project; @endphp @endforeach @endif
Project Code Full Name Next Followup Date Comments Call Status Created On
{{ $project->project_code }} {{ $call->center_incharge_id ? $call->center_incharge->person->full_name : $call->project_incharge->person->full_name }} {{ $call->next_followup_date ? AppHelper::date($call->next_followup_date) : $call->project_status }} {{ $call->comments }} {{ $call->project_status }}   {{ ($call->created_user->name) }}    {{ AppHelper::date($call['created_at']) }}
{{ $project->project_code }} {{ $call->center_incharge_id ? $call->center_incharge->person->full_name : $call->project_incharge->person->full_name }} {{ $call->next_followup_date ? AppHelper::date($call->next_followup_date) : $call->project_status }} {{ $call->comments }} {{ $call->project_status }}   {{ ($call->created_user->name) }}    {{ AppHelper::date($call['created_at']) }}
{{ $project->project_code }} {{ $call->center_incharge_id ? $call->center_incharge->person->full_name : $call->project_incharge->person->full_name }} {{ $call->next_followup_date ? AppHelper::date($call->next_followup_date) : $call->project_status }} {{ $call->comments }} {{ $call->project_status }}   {{ ($call->created_user->name) }}    {{ AppHelper::date($call['created_at']) }}
@if (request('program') == 'al' && isset($al_follow_up_calls))
{{ $al_follow_up_calls->appends(request()->except('page'))->links() }}
@elseif (request('program') == 'asc' && isset($asc_follow_up_calls))
{{ $asc_follow_up_calls->appends(request()->except('page'))->links() }}
@elseif (request('program') == 'ict' && isset($ict_follow_up_calls))
{{ $ict_follow_up_calls->appends(request()->except('page'))->links() }}
@endif
@endsection