| {{ __('general.vacations.report.total_days') }} | {{ __('general.vacations.report.legal_days') }} | {{ __('general.vacations.report.remaining_days') }} | {{ __('general.vacations.report.date_of_employment') }} |
|---|---|---|---|
| {{ $data['vacation_user_settings']['total_days'] ?? '' }} | {{ $data['vacation_user_settings']['proportional_days'] ?? '' }} | {{ $data['vacation_user_settings']['remaining_days'] ?? '' }} | {{ $data['user']['date_of_employment'] ? Carbon::parse($data['user']['date_of_employment'])->format('d.m.Y') : '' }} |
| {{ __('general.vacations.report.substitute') }} | {{ __('general.vacations.report.supervisor') }} | {{ __('general.vacations.report.hr') }} | {{ __('general.vacations.report.ceo') }} |
|---|---|---|---|
|
@if ($substitute)
{{ $substitute['status_text'] }}
@if (!empty($substitute['approved_by']['name']))
{{ $substitute['approved_by']['name'] }}
@endif
@if (!empty($substitute['comment']))
{{ $substitute['comment'] }}
@endif
@else
{{ __('general.vacations.report.no_substitute') }}
|
{{-- Șef Ierarhic --}}
@php
$supervisor = collect($data['approvals'])->firstWhere('role', \App\Models\VacationApproval::SUPERVISOR);
@endphp
@if ($supervisor)
{{ $supervisor['status_text'] }}
@if (!empty($supervisor['approved_by']['name']))
{{ $supervisor['approved_by']['name'] }}
@endif
@if (!empty($supervisor['comment']))
{{ $supervisor['comment'] }}
@endif
@else
{{ __('general.vacations.report.no_supervisor') }}
|
{{-- Resurse Umane --}}
@php
$hr = collect($data['approvals'])->firstWhere('role', \App\Models\VacationApproval::HR);
@endphp
@if ($hr)
{{ $hr['status_text'] }}
@if (!empty($hr['approved_by']['name']))
{{ $hr['approved_by']['name'] }}
@endif
@if (!empty($hr['comment']))
{{ $hr['comment'] }}
@endif
@else
{{ __('general.vacations.report.no_hr') }}
|
{{-- Director General --}}
@php
$ceo = collect($data['approvals'])->firstWhere('role', \App\Models\VacationApproval::CEO);
@endphp
@if ($ceo)
{{ $ceo['status_text'] }}
@if (!empty($ceo['approved_by']['name']))
{{ $ceo['approved_by']['name'] }}
@endif
@if (!empty($ceo['comment']))
{{ $ceo['comment'] }}
@endif
@else
{{ __('general.vacations.report.no_supervisor') }}
|
| {{ __('general.vacations.report.vehicle') }} | {{ __('general.vacations.report.kms') }} | {{ __('general.vacations.report.logistic') }} |
|---|---|---|
| {{ $data['car']['car_plate_number'] ?? '' }} | {{ $data['car']['car_estimate_kms'] ?? '' }} |
{{-- 1. Badge‐ul cu statusul --}}
{{ $logisticApproval['status_text'] }}
{{-- 2. Numele celui care a aprobat (dacă există) --}}
@if (!empty($logisticApproval['approved_by']['name']))
{{ $logisticApproval['approved_by']['name'] }}
@endif
{{-- 3. Comentariul, cu font mai mic şi separator --}}
@if (!empty($logisticApproval['comment']))
{{ $logisticApproval['comment'] }}
@endif
|