@extends('layouts.app') @section('content')

Laporan Gaji Guru

Pilih bulan dan tahun untuk melihat laporan gaji.

@csrf
@if(!empty($data))

Hasil Laporan: {{ date('F', mktime(0, 0, 0, $month, 1)) }} {{ $year }}

@php $totalPembayaran = 0; @endphp @foreach ($data as $index => $row) @php $totalPembayaran += str_replace('.', '', $row['gaji']); @endphp @endforeach
No Nama Guru Hadir & Terlambat Upah Gaji Aksi
{{ $index + 1 }} {{ $row['nama_guru'] }} {{ $row['hadir'] }} Rp {{ $row['upah'] }} Rp {{ $row['gaji'] }} @if($row['paid'] == 0) @else @endif
Total Pembayaran Rp {{ number_format($totalPembayaran, 0, ',', '.') }}
@endif
@endsection