@extends('layouts.header_admin') @section('css') @endsection @section('content')
as of Today
Total Generated Payroll

{{$payrolls->count()}}

 
@if($payrolls->first() != null){{date('M. d, Y', strtotime(($payrolls->first())->payroll_from))}} - {{date('M. d, Y', strtotime(($payrolls->first())->payroll_to))}}@endif
Generated this cutoff

@if($payrolls->first() != null){{count($payrolls->where('payroll_to', ($payrolls->first())->payroll_to)->where('status', ""))}}@endif

 
@if($payrolls->first() != null){{date('M. d, Y', strtotime(($payrolls->first())->payroll_from))}} - {{date('M. d, Y', strtotime(($payrolls->first())->payroll_to))}}@endif
Active Stores

{{count($stores)}}

 
@if($payrolls->first() != null){{date('M. d, Y', strtotime(($payrolls->first())->payroll_from))}} - {{date('M. d, Y', strtotime(($payrolls->first())->payroll_to))}}@endif
Posted

@if($payrolls->first() != null){{count($payrolls->where('payroll_to', ($payrolls->first())->payroll_to)->where('status', '!=', ''))}}@endif

 
@foreach($payrolls as $payroll) @endforeach
Action Company Store Generated By Cut Off Employee Count Total Basic Pay Contributions
@if($payroll->status == "") @else @if($payroll->display == 0) @else @endif @endif {{ $payroll->company ?? 'N/A' }} {{ $payroll->store ?? 'N/A' }} @if($payroll->generated_by) {{ optional($payroll->user)->name ?? 'N/A' }} @else {{ $payroll->generated_by_name ?? 'N/A' }} @endif {{ date('M d, Y', strtotime($payroll->payroll_from)) }} - {{ date('M d, Y', strtotime($payroll->payroll_to)) }} {{ count($payroll->informations) }} {{ number_format((($payroll->informations)->sum('basic_pay')), 2) }} SSS : {{ number_format((($payroll->informations)->sum('sss_contribution')), 2) }}
HDMF : {{ number_format((($payroll->informations)->sum('hdmf_contribution')), 2) }}
NHIP : {{ number_format((($payroll->informations)->sum('nhip_contribution')), 2) }}
@endsection @section('js') @endsection