@extends('backEnd.master') @section('title') @lang('hr.generate_payroll') @endsection @section('mainContent') @php $setting = generalSetting(); if (!empty($setting->currency_symbol)) { $currency = $setting->currency_symbol; } else { $currency = '$'; } @endphp

@lang('hr.generate_payroll')

@lang('common.name')
@if (isset($staffDetails)) {{ $staffDetails->full_name }} @endif
@lang('hr.staff_no')
@if (isset($staffDetails)) {{ $staffDetails->staff_no }} @endif
@lang('hr.month')
P
L
A
F
H
@lang('common.mobile')
@if (isset($staffDetails)) {{ $staffDetails->mobile }} @endif
@lang('common.email')
@if (isset($staffDetails)) {{ $staffDetails->email }} @endif
{{ $payroll_month }}
{{ $p }}
{{ $l }}
{{ $a }}
{{ $f }}
{{ $h }}
@lang('hr.role')
@if (isset($staffDetails)) {{ $staffDetails->roles->name }} @endif
@lang('hr.department')
@if (isset($staffDetails)) {{ $staffDetails->departments ? $staffDetails->departments->name : '' }} @endif
@lang('hr.designation')
@if (isset($staffDetails)) {{ $staffDetails->designations ? $staffDetails->designations->title : '' }} @endif
@lang('hr.date_of_joining')
@if (isset($staffDetails)) {{ $staffDetails->date_of_joining != '' ? dateConvert($staffDetails->date_of_joining) : '' }} @endif
@if (moduleStatusCheck('Lms') == true) @if (in_array($staffDetails->role_id, [4]))
@lang('lms::lms.total_course')
@lang('lms::lms.total_sell')
@lang('lms::lms.this_month_sell')
@lang('lms::lms.this_month_revenue')
@lang('lms::lms.payable_amount')
{{ $totalCourse }}
{{ $totalSellCourseCount }}
{{ currency_format($thisMonthSell) }}
{{ currency_format($thisMonthRevenue) }}
{{ currency_format($staffDetails->lms_balance) }}
@endif @endif
{{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'savePayrollData', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }}

@lang('hr.earnings')

@if ($staffDetails->lms_balance && moduleStatusCheck('Lms') == true) @endif

@lang('hr.deductions')

@lang('hr.payroll_summary')

@if ($errors->has('net_salary')) {{ $errors->first('net_salary') }} @endif
@if (userPermission('savePayrollData')) @endif
{{ Form::close() }} @endsection