@extends('layouts.master') @section('title'){{trans_choice('general.payroll',1)}} @endsection @section('content')
| {{trans_choice('general.staff',1)}} | {{trans_choice('general.last_pay_date',1)}} | {{trans_choice('general.last_gross_amount',1)}} | {{trans_choice('general.last_total_deductions',1)}} | {{trans_choice('general.last_paid_amount',1)}} | {{trans_choice('general.last_payslip',1)}} | {{trans_choice('general.action',1)}} | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| {{$key->first_name}} {{$key->last_name}} | @if(!empty(\App\Models\Payroll::where('user_id',$key->id)->orderBy('created_at','desc')->first())){{\App\Models\Payroll::where('user_id',$key->id)->orderBy('created_at','desc')->first()->date}} | {{\App\Helpers\GeneralHelper::single_payroll_total_pay(\App\Models\Payroll::where('user_id',$key->id)->orderBy('created_at','desc')->first()->id)}} | {{\App\Helpers\GeneralHelper::single_payroll_total_deductions(\App\Models\Payroll::where('user_id',$key->id)->orderBy('created_at','desc')->first()->id)}} | {{\App\Models\Payroll::where('user_id',$key->id)->orderBy('created_at','desc')->first()->paid_amount}} | @else | @endif |