{{-- Arbeitszeitkontrolle SMGV — Basisblatt (A4 portrait). One page per employee. German, print-friendly, layout of the client reference. --}}
@php($h = fn ($m, $blank = false) => \App\Support\Hours::fmt($m, $blank))
{{ __('smgv.exports.templateNote', [], 'de') }}
@if ($y['draft'] && ! ($s['hasHistoricalSource']??false))
{{ __('smgv.exports.watermark', [], 'de') }}
@endif
| Arbeitszeitkontrolle SMGV - Basisblatt | {{ $year }} | @include('pdf.smgv._brand') |
| Firma | {{ $company }} | |
|
| Name | | Adresse | | Kontakt |
| Mitarbeiter:in | {{ $s['emp']->name }} | |
{{ $s['profile']?->street ?: 'Strasse Nr' }} | | {{ $s['emp']->phone ?: 'Telefon' }} |
| | | {{ trim(($s['profile']?->postal_code ?? '').' '.($s['profile']?->city ?? '')) ?: 'PLZ Ort' }} | | {{ $s['contactEmail'] ?: 'E-Mail' }} |
|
| AHV-Nummer | | Geburtsdatum | | Eintrittsdatum Austrittsdatum |
| {{ $s['ahv'] ?: 'AHV-Nummer' }} | |
{{ $s['profile']?->birth_date?->format('d.m.Y') }} | |
{{ $s['contract']?->entry_date?->format('d.m.Y') }} {{ $s['contract']?->exit_date?->format('d.m.Y') }} |
| Vorjahr (Übertrag) | Stundensaldo | {{ $h($y['previous']['saldo']) }} | Stunden |
laufendes Jahr | Ferienguthaben | {{ $h($s['grossVacation']) }} | Stunden |
| Ferien | {{ $h($y['vacation']['previous']) }} | Stunden |
| | {{ $h($y['vacation']['gav']) }} | Stunden |
| Ferien automatisch berechnen | {{ ($s['contract']?->vacation_auto ?? true) ? 'ja' : 'nein' }} | |
| Feiertagskalender | Feiertage mit einem kleinen x ankreuzen |
| Tag | @foreach (range(1, 31) as $d){{ $d }} | @endforeach
@foreach (range(1, 12) as $m)
| {{ ['', 'Jan', 'Feb', 'Mrz', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'][$m] }} |
@foreach (range(1, 31) as $d)
@if (! checkdate($m, $d, $year)) |
@else @php($date = sprintf('%04d-%02d-%02d', $year, $m, $d)) @php($wd = (int) date('N', strtotime($date)))
{{ isset($holidays[$date]) ? 'x' : '' }} | @endif
@endforeach
@endforeach
Pensum (Beschäftigungsgrad)
Bitte für jeden Arbeitstag das passende Pensum angeben | für arbeitsfreie Tage 0 eingeben
| % | @foreach (['MO', 'DI', 'MI', 'DO', 'FR'] as $wd){{ $wd }} | @endforeachØ AT | Ø Std/Tag | effekt. BG |
@foreach ($y['month_results'] as $mr)
@php($emp = collect($mr['days'])->filter(fn ($d) => $d['employed'] && $d['weekday'] <= 5))
@php($at = $emp->filter(fn ($d) => $d['pensum_bp'] > 0)->groupBy('weekday')->count())
| {{ ['', 'Jan', 'Feb', 'Mrz', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'][$mr['month']] }} |
{{ \App\Support\Hours::pct($mr['employment_bp']) }} |
@foreach (range(1, 5) as $wd) @php($day = $emp->first(fn ($d) => $d['weekday'] === $wd)){{ \App\Support\Hours::pct($day['pensum_bp'] ?? 0) }} | @endforeach
{{ number_format($at, 2, '.', '') }} | {{ $h($emp->isEmpty() ? 0 : intdiv((int) $emp->avg('soll'), 1)) }} | {{ \App\Support\Hours::pct($mr['employment_bp']) }}% |
@endforeach
| Ø | {{ \App\Support\Hours::pct($y['employment_bp']) }} | | {{ \App\Support\Hours::pct($y['employment_bp']) }}% |
Seite 1
@endforeach