@extends('index') @section('content')

Attendance Summary

@csrf
Good job!
Good job!
@if(!empty($dfrom) && !empty($dto)) @endif @foreach($summary as $data) @php $amount = $transaction->firstWhere('payee_id', $data['EID']); $debit = $amount ? $amount->debit : 0; @endphp @endforeach
Date From: {{date("d-m-Y", strtotime($dfrom))}} Date To: {{date("d-m-Y", strtotime($dto))}}
Sr. Employee Name Monthly Salary Salary Advance Remaining Late Time Absents Single Attendance
{{ $loop->index + 1 }} {{ $data['ENO'] }} - {{ $data['NAME'] }} {{ number_format($data['SALARY']) }} {{ number_format($debit) }} {{ number_format($data['SALARY'] - $debit) }} {{ $data['TOTAL_LATE'] }} {{ $data['TOTAL_ABSENTS'] }} {{ $data['TOTAL_SINGLE_ATTENDANCE'] }}
Sr. Employee Name Monthly Salary Salary Advance Remaining Late Time Absents Single Attendance
@endsection