@php $layout = isSeller() ? 'layouts.seller' : 'layouts.admin'; @endphp @extends($layout) @section('css') @endsection @section('content')
{!! Form::open(array('route' => $routes, 'method' => 'POST' ,'id' => 'ajaxSave','files' => true)) !!}
@include('layouts.partials.messages')
{!! Form::label('first_name', __('employee.first_name'), ['class' => 'control-label mb-2']) !!} {!! Form::text('first_name',$data->first_name, ['class' => 'form-control']) !!}
{!! Form::label('last_name', __('employee.last_name'), ['class' => 'control-label mb-2']) !!} {!! Form::text('last_name',$data->last_name, ['class' => 'form-control']) !!}
{!! Form::label('mobile', __('employee.mobile'), ['class' => 'control-label mb-2']) !!}
{!! Form::select('mobile_code',$dialCode,$data->mobile_code, ['class' => 'form-control select2']) !!}
{!! Form::text('mobile_number',$data->mobile_number, ['class' => 'form-control']) !!}
{!! Form::label('gender', __('employee.gender'), ['class' => 'control-label mb-2']) !!} {!! Form::select('gender',empGender(),$data->gender, ['class' => 'form-control']) !!}
{!! Form::label('payroll_setting', __('employee.payroll_setting'), ['class' => 'control-label mb-2']) !!} {{-- -- no usage at all comment this code @author Pardeep 12/01/2023 @php if((int) $data->payroll_setting_id > 0) { $payrollSetting[$data->payroll_setting_id] = $data->payroll_setting_title; } @endphp --}} {!! Form::select('payroll_setting', $payrollSetting, $data->payroll_setting_id, ['class' => 'form-control select2']) !!}
{!! Form::label('employee_group', __('employee.employee_group'), ['class' => 'control-label mb-2']) !!} {!! Form::select('employee_group',$employeeGroup,$activeEmployeeGroup ?? 0, ['class' => 'form-control select2','id'=>'employee_group']) !!}
{!! Form::label('pin', __('employee.pin'), ['class' => 'control-label mb-2']) !!}
{!! Form::text('pin',$data->pin, ['class' => 'form-control type_number __random_pin', 'maxlength' => '4' , 'readonly' => true]) !!}
Generate Pin
{!! Form::label('email', __('employee.email'), ['class' => 'control-label mb-2']) !!}
{!! Form::text('email',$data->email, ['class' => 'form-control', 'data-url' => route('employee.send-verification-mail', $data->id)]) !!}
is_profile_update) style="background: #00d81a;color:#fff" @else style="background: #2f7ffc;color:#fff" @endif > @if($data->is_profile_update) {!! __('employee.email_verified') !!} @else {!! __('employee.email_verify') !!} @endif

{{--
--}} {{----}} {{--
--}}
  • {{--
  • --}}
is_seller_user == 0) ? 'style="display: none;' : '' !!}"> @include('layouts.menu', [ 'menus' => $menus, 'permission' => isset($permission) ? $permission : [], ])
{{----}}
@if (count($groupWages)>0) {{-- --}} {{----}} @php $i=1; @endphp @foreach ($groupWages as $detail) {{-- --}} {{----}} @endforeach
{{ __('common.sr-no')}} {{__('employee.group_name')}}{{__('employee.wages')}} {{__('employee.start_date')}} {{__('employee.end_date')}} {{__('common.action')}}
{!! $i++; !!} {!! $detail->group_name !!} {!! $detail->wage_rate !!} kr per hour{!! dateFormat($detail->wef, DISPLAY_DATETIME2) !!} @if($detail->is_active == 0) {!! dateFormat($detail->wet, DISPLAY_DATETIME2) !!} @else -- @endif @if($detail->is_active == 1) @else -- @endif
@else
{{ __('common.no_records')}}
@endif
@if (isset($payrollHistory) && count($payrollHistory) > 0) @php $i=1; @endphp @foreach ($payrollHistory as $history) @endforeach
{{ __('common.sr-no')}} {{__('employee.payroll_title')}} {{__('employee.start_date')}} {{__('employee.end_date')}} {{__('employee.created_by')}}
{!! $i++; !!} {!! $history->payroll_setting_title !!} {!! dateFormat($history->wef, DISPLAY_DATETIME2) !!} @if($history->is_active == 0) {!! dateFormat($history->wet, DISPLAY_DATETIME2) !!} @else -- @endif {!! $history->created_name !!} {!! ($history->is_admin == 1) ? '(' . __('employee.admin') . ')' : '' !!}
@else
{{ __('common.no_records')}}
@endif
{{--
@include('seller.schedule.employee-shifts')
--}}
Payslip goes here.
@if (count($vacation) > 0) @php $i = 1; @endphp @foreach ($vacation as $detail) @endforeach
{{__('common.sr-no')}} {{__('employee.vacation_type')}} {{__('employee.date')}} {{__('employee.approved')}}
{{ $i++ }} {{ vacationType($detail->vacation_type) }} {!! ($detail->vacation_type == 2) ? " From: " : "" !!} {!! dateFormat($detail->start_date, 'd-m-Y') !!} {!! ($detail->vacation_type == 2) ? "
To: " . dateFormat($detail->end_date, 'd-m-Y') : "" !!}
{!! vacationStatus($detail->status) !!}
@else
{{ __('common.no_records')}}
@endif
Overtime goes here.
@method('PUT') {!! Form::close() !!}
@include('layouts.partials.crop-image-modal') @endsection @section('script') @include('layouts.menu-script') @endsection