@extends('employee.layouts.app') @section('breadcrumb') @endsection @section('content')
{{ __('Follow-up history') }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($followups->isEmpty())

{{ __('No follow-ups recorded yet.') }}

@else @foreach($followups as $followup)
{{ ucfirst($followup->type ?? __('Follow-up')) }}

{{ __('Created at') }}: {{ \Carbon\Carbon::parse($followup->created_at)->format('d M, Y h:i A') }}

{{ $followup->remark ?? __('No remark provided.') }}

{{ __('Contact person') }}: {{ $followup->contact_person ?? '�' }}

@if($followup->next_follow_up_at) {{ __('Next follow-up') }}: {{ \Carbon\Carbon::parse($followup->next_follow_up_at)->format('d M, Y h:i A') }} @endif {{ $followup->completed_at ? __('Completed') : __('Pending') }}
@if(!$followup->completed_at)
@csrf @method('PATCH')
@endif
@endforeach @endif
{{ __('Log a follow-up') }}
@csrf
@error('contact_person')
{{ $message }}
@enderror
@error('type')
{{ $message }}
@enderror
@error('remark')
{{ $message }}
@enderror
@error('next_follow_up_at')
{{ $message }}
@enderror
@endsection