{{ __('Dane Firmy') }}

← Powrót Edytuj
@csrf

Dane Firmy:

Nazwa firmy: {{ $attributes[36] ?? '–' }}
Imię: {{ $company->acc_cl_name ?? '–' }}
Nazwisko: {{ $company->acc_cl_username ?? '–' }}
E-mail: {{ $attributes[3] ?? '–' }}
VAT: {{ $attributes[42] ?? '–' }}
Obsługiwany język: {{ $attributes[45] ?? '–' }}
Hasło: {{ $attributes[19] ?? '–' }}
@if(!empty($documentsByYear) && count($documentsByYear) > 0)

Przesłane dokumenty

@else

Brak przesłanych dokumentów

@endif @php $allPeriods = []; foreach ($documentsByYear as $year => $months) { foreach ($months as $month => $docs) { $allPeriods[] = $year . '-' . str_pad($month, 2, '0', STR_PAD_LEFT); } } foreach ($doneMonths as $done) { $allPeriods[] = $done; } $allPeriods = array_unique($allPeriods); usort($allPeriods, function ($a, $b) { [$yA, $mA] = explode('-', $a); [$yB, $mB] = explode('-', $b); if ($yA == $yB) { return $mB <=> $mA; } return $yB <=> $yA; }); @endphp @php $currentYear = null; @endphp @php $monthsPl = [ 1 => 'Styczeń', 2 => 'Luty', 3 => 'Marzec', 4 => 'Kwiecień', 5 => 'Maj', 6 => 'Czerwiec', 7 => 'Lipiec', 8 => 'Sierpień', 9 => 'Wrzesień', 10 => 'Październik', 11 => 'Listopad', 12 => 'Grudzień', ]; @endphp @foreach ($allPeriods as $period) @php [$year, $month] = explode('-', $period); $isDone = in_array($period, $doneMonths); $monthKeyInt = (int) $month; $monthKeyStr = str_pad($monthKeyInt, 2, '0', STR_PAD_LEFT); $docsForMonth = $documentsByYear[$year][$monthKeyStr] ?? []; @endphp @if ($year !== $currentYear) @php $currentYear = $year; @endphp

{{ $year }}

@endif

{{ $monthsPl[$monthKeyInt] }} @if($isDone) ✔ @else {{-- Button: Mark as done --}}
@csrf
@endif

{{-- Przychodowe --}}
Faktury przychodowe {{-- Button: Download kosztowe --}} @if(!empty($docsForMonth['przychodowe'])) Pobierz przychodowe @endif
@if(!empty($docsForMonth['przychodowe'])) @else

Brak plików

@endif
{{-- Kosztowe --}}
Faktury kosztowe {{-- Button: Download kosztowe --}} @if(!empty($docsForMonth['kosztowe'])) Pobierz kosztowe @endif
@if(!empty($docsForMonth['kosztowe'])) @else

Brak plików

@endif
@endforeach