@extends('dashboard.layouts.app') @section('content') @include('components.alert')
@if ($payrollRun) Run for {{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }} @else Not run for {{ \Carbon\Carbon::create()->month($month)->format('F') }} {{ $year }} @endif
Total Gross Salaries
{{ number_format($totalGross, 2) }}
Total Net Salaries
{{ number_format($totalNet, 2) }}
Total Bonuses
{{ number_format($bonuses_total, 2) }}
Total Penalties
{{ number_format($penalties_total, 2) }}
{{-- Title --}}
Filters
@foreach ($rows as $row) @php $staffName = $row->full_name ?: trim(($row->first_name ?? '') . ' ' . ($row->last_name ?? '')); @endphp {{ $staffName ?: '—' }} @if (!empty($row->run_date)) {{ $row->from_date }} to {{ $row->to_date }} @else — @endif @if (!empty($row->run_date)) {{ \Illuminate\Support\Carbon::parse($row->run_date)->format('Y-m-d') }} @else — @endif {{ number_format($row->gross_salary, 2) }} {{ number_format($row->net_salary, 2) }} {{ number_format($row->bonuses, 2) }} {{ number_format($row->penalties, 2) }} {{ $row->notes ?: '—' }} @if ($row->in_compensation_log) Viewed @else Not Viewed @endif @if (!empty($row->user_id)) @if (!$payrollRun) Add Variable @else — @endif @else — @endif @endforeach
@endsection @push('styles') @endpush @push('scripts') @endpush