{{ __('views.client.loans.collector_history') }}

@if($assignmentHistory->isEmpty())

{{ __('views.client.loans.no_collector_history') }}

@else
@foreach($assignmentHistory as $history) @endforeach
{{ __('views.client.loans.collector') }} {{ __('views.client.loans.assigned_at') }} {{ __('views.client.loans.removed_at') }} {{ __('views.client.loans.changed_by') }} {{ __('views.client.loans.company') }} {{ __('views.client.loans.source') }}
{{ $history->agency?->name ?? '—' }} {{ $history->assigned_at ? toDate($history->assigned_at, true) : '—' }} {{ $history->removed_at ? toDate($history->removed_at, true) : '—' }} @if($history->source !== 'campaign' && $history->actor){{ $history->actor->nombre }}@else—@endif @if($history->company){{ $history->company->name }}@else—@endif {{ __('views.client.loans.assignment_sources.'.$history->source) }}
@endif