@extends('layouts.manager') @section('title','Результат підрахунку ЗП') @section('page_title','Результат підрахунку ЗП') @push('head') @endpush @section('page_actions') ← Назад до калькулятора @endsection @section('content')
| Імʼя | Кабінет | Сума | % | Чиста ЗП | Статус |
|---|---|---|---|---|---|
|
{{ $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, '.', ' ') }} | ||||