@extends('layouts.master') @section('content')
{{ $title }}
A list of exports.
@if(isset($error) || session('error'))
{{ $error ?? session('error') }}
@endif @if(session('success'))
{{ session('success') }}
@endif
@foreach($data as $item) @php $pamPayRun = App\Models\PamPayRun::where('id', $item->current_pay_run_id)->first(); @endphp @if($pamPayRun && $pamPayRun->pay_run_status === 'closed') @endif @endforeach
Name Period Employees Gross Pay Net Pay Actions
{{ $item->short_description }} {{ $item->currentPamPayRun->pamPayRunPeriod->calendar_month .'-'. $item->currentPamPayRun->pamPayRunPeriod->calendar_year }} {{ $item->pamEmps->count() }} {{ number_format($item->getTotalGrossPay(), 2, '.', ',') }} {{ number_format($item->getTotalNetPay(), 2, '.', ',') }} @if(auth()->user()->roles->first()->permissions->contains('name', 'Export data')) @if(auth()->user()->roles->first()->permissions->contains('name', 'Export data')) Generate EFT @endif Email Payslips Print Payslips @endif
@endsection @section('modal') @foreach($data as $item) @endforeach @endsection @section('scripts') @endsection