@extends('layouts.manager') @section('title','Результат підрахунку ЗП') @section('page_title','Результат підрахунку ЗП') @push('head') @endpush @section('page_actions') ← Назад до калькулятора @endsection @section('content')
Місяць: {{ \Carbon\Carbon::parse($month)->format('Y-m') }}
Мінус %: {{ number_format((float)$penalty, 2, '.', '') }}%
@php $totalSalary = 0; @endphp @foreach($rows as $row) @php if (($row['status'] ?? null) === 'auto' && ($row['salary'] ?? null) !== null) { $totalSalary += (float) $row['salary']; } @endphp @endforeach
Імʼя Кабінет Сума % Чиста ЗП Статус
{{ $row['person_name'] ?? '—' }} @if(!empty($row['error']))
{{ $row['error'] }}
@endif
{{ !empty($row['cabinet_code']) ? $row['cabinet_code'] : '—' }} {{ number_format((float)($row['amount'] ?? 0), 2, '.', ' ') }} @if(($row['percent'] ?? null) !== null) {{ rtrim(rtrim(number_format((float)$row['percent'], 2, '.', ''), '0'), '.') }}% @else — @endif @if(($row['salary'] ?? null) !== null) {{ number_format((float)$row['salary'], 0, '.', ' ') }} @else — @endif @if(($row['status'] ?? null) === 'auto') auto @elseif(($row['status'] ?? null) === 'manual') manual @else error @endif
Загальна ЗП (auto): {{ number_format((float)$totalSalary, 0, '.', ' ') }}
← Порахувати ще раз
@endsection @push('scripts') @endpush