@extends('layouts.admin') @section('content')
@include('admin.errors.form-errors')
{{-- Un Posted Transactions --}} @if ($uncommited_payroll)
@lang('student.filter by')
@if (Request::has('date') || Request::has('employee'))

@if ($uncommited_payroll->first()) Un Committed List ({{$uncommited_payroll->first()->from}} To {{$uncommited_payroll->first()->to}} ) @endif

{{-- Export btn --}} @if (count($uncommited_payroll) > 0) @endif
@php $count=0 @endphp @foreach ($uncommited_payroll as $item) @endforeach
Id employee name salary deduction bonus net salary bank account
{{++$count}} {{$item->employee->name}} {{$item->salary}} EGP {{$item->deduction}} EGP {{$item->bonus}} EGP {{$item->net_salary}} EGP {{$item->employee->bank_account}} Commit
@csrf
@endif @endif {{-- commited Transactions --}} @if ($commited_payroll)
@lang('student.filter by')
@if (Request::has('date') || Request::has('employee'))

Committed List

@if (count($commited_payroll) > 0)
@endif
@php $count=0; $amount=0; @endphp @foreach ($commited_payroll as $item) @php $amount=$amount+$item->net_salary; @endphp @endforeach
Id employee name salary deduction bonus net salary bank account
{{++$count}} {{$item->employee->name}} {{$item->salary}} EGP {{$item->deduction}} EGP {{$item->bonus}} EGP {{$item->net_salary}} EGP {{$item->employee->bank_account}}
Total Committed Salaries: {{$amount}} EGP
@endif @endif
{{-- Bonus Modal --}} @endsection @section('admin-js') @endsection