@extends('layouts.app') @section('title', 'Follow Ups') @section('content')
Follow Ups
{{-- --}}
@forelse($followUps as $log) @empty @endforelse
Customer Name Event Created by User Log Date Next step Completed Completed At Created At
@php $tempCustomerName = $log->salesVisit->temporary_customer_name ?? null; $customerName = $log->corporateCustomer ? $log->corporateCustomer->company_name : ($tempCustomerName ?? 'N/A'); @endphp {{ $customerName }} {{ $log->event ? $log->event->event_name : '-' }} {{ $log->user ? $log->user->name : '-' }} {{ $log->log_date ? Carbon\Carbon::parse($log->log_date)->format('Y-m-d H:i') : '-' }} {{ Str::limit($log->next_steps, 40) }} @php $statusText = $log->is_completed ? 'Yes' : 'No'; $badgeClass = $log->is_completed ? 'badge-success' : 'badge-warning'; @endphp {{ $statusText }} {{ $log->completed_at ? Carbon\Carbon::parse($log->completed_at)->format('Y-m-d H:i') : '-' }} {{ $log->created_at ? Carbon\Carbon::parse($log->created_at)->format('Y-m-d H:i') : '-' }}
No follow-up records found.
@if ($followUps->total() > 0)
Showing {{ $followUps->firstItem() }} to {{ $followUps->lastItem() }} of {{ $followUps->total() }} entries
@endif
{{ $followUps->appends(request()->query())->links() }}
@endsection @push('js') @endpush