@extends('companyuser::layouts.master') @section('title', __('hr::payroll.payroll')) @section('extra-styles') @endsection @push('extra_scripts') @endpush @section('breadcrumb') @endsection @section('content') @if (checkAddonAvailability(request()->get('tenant_current_subscription')->id, \Modules\Tenant\Enums\SystemAddonEnum::HR_MODULE))

@lang('hr::payroll.payroll')

@can('sales.invoices.create') @endcan
@include('companyuser::errors.all') @include('companyuser::errors.lists')
@foreach ($payrollEntries as $payrollEntry) @endforeach
@lang('hr::payroll.Date') @lang('hr::payroll.targeted month') @lang('hr::payroll.created by') @lang('hr::payroll.total salaries') @lang('Actions')
{{$payrollEntry->date}}{{ \App\Services\Date::format($payrollEntry->date, 'date') }} {{$payrollEntry->month . "/" . $payrollEntry->year}} @if($payrollEntry->created_by == auth()->user()->id) Me @else {{$payrollEntry->user->uname}} @endif {{ ($payrollEntry->payrollEntryDetails()->sum('salary_amount')) }} @can('hr.employees.edit') @endcan @can('hr.employees.delete') @endcan
{{---------------- popup to deleted purchase bill -------------------------------}}
@else
@include('companyuser::components.addon-not-available', ['addon' => __('companyuser::addons.hr_module')])
@endif @endsection @section('extra_scripts') {{-- this jquery simulate library to fire native events on selected element instead of the normal jquery event (which is not native event) and this to match the vue click event which relies on the native events --}} @endsection