@extends('layouts.main') @section('page-title') {{ __('Manage Payroll Report') }} @endsection @section('page-breadcrumb') {{ __('Payroll Report') }} @endsection @section('page-action')
@endsection @push('scripts') @endpush @section('content')
{{ Form::open(['route' => ['report.payroll'], 'method' => 'get', 'id' => 'report_payroll']) }} {{ Form::hidden('is_export', '', ['id' => 'is_export']) }}
{{ Form::label('start_month', __('Start Month'), ['class' => 'form-label']) }} {{Form::month('start_month',isset($_GET['start_month'])?$_GET['start_month']:date('Y-m'),array('class'=>'form-control'))}}
{{ Form::label('end_month', __('End Month'), ['class' => 'form-label']) }} {{Form::month('end_month',isset($_GET['end_month'])?$_GET['end_month']:date('Y-m'),array('class'=>'form-control'))}}
{{ Form::label('report_type', __('Report Type'), ['class' => 'form-label']) }} {{ Form::select('report_type', $report_type,isset($_GET['report_type']) ? $_GET['report_type'] : null, ['class' => 'form-control']) }}
{{ Form::label('employees', __('Employees'), ['class' => 'form-label']) }} {{ Form::select('employees[]', $employees_box,isset($_GET['employees']) ? $_GET['employees'] : 0, ['class' => 'form-control choices','multiple'=>'multiple','id'=>'employees', 'placeholder' => 'Select Employee']) }}
{{ Form::close() }}
@php $dates = ''; if(isset($_GET['start_month']) && isset($_GET['end_month'])) { $dates = date("M-Y", strtotime($_GET['start_month'])).' - '. date("M-Y", strtotime($_GET['end_month'])); } @endphp @forelse ($employees as $key => $employee) @if(!empty($employee->employee_id)) @else @endif @php $emp_total = 0; if(count($data) > 0 && array_key_exists($key,$data)) { $emp_total = end($data[$key]); } @endphp @empty @include('layouts.nodatafound') @endforelse
{{ __('Employee ID') }} {{ __('Employee') }} {{ __('Payroll Type') }}{{ isset($_GET['report_type']) ? !empty($_GET['report_type']) ? str_replace('_', ' ',$_GET['report_type']).' '.$dates : '#' : '#' }}
@permission('employee show') {{ Workdo\Hrm\Entities\Employee::employeeIdFormat($employee->employee_id) }} @else {{Workdo\Hrm\Entities\Employee::employeeIdFormat($employee->employee_id)}} @endpermission --{{ $employee->name}} {{ !empty($employee->salary_type()) ? ($employee->salary_type()) ?? '' : '' }}{{ currency_format($emp_total == 0 ? $employee->salary : $emp_total) }}
@endsection @push('scripts') @endpush