@extends('app-new') @push('head-script') @endpush @push('content-header') @endpush @section('content') {!! Form::model($manager, ['method' => isset($manager) && $manager->id ? 'put' : 'post', 'files' => 'true']) !!}
{{trans('manager/manager_create.user_details')}}
{{trans('manager/manager_create.enter_user_details')}}
{!! $errors->first('organization_id', '')!!}
{!! Form::text('name', isset($manager) && $manager->name ? $manager->name : old('name'), ['class' => 'form-control', 'id' => 'name']) !!} {!! $errors->first('name', ' ')!!}
{!! $errors->first('user_type', '')!!}
{!! $errors->first('is_contractor', '')!!}
{!! $errors->first('email','')!!}
{!! $errors->first('mobile','')!!}
{{trans('manager/manager_create.security_details')}}
{{trans('manager/manager_create.enter_security_details')}}
@if($manager->id) @else @endif
{!! $errors->first('password', '')!!}
{!! $errors->first('password_confirmation', '')!!}
{{trans('manager/manager_create.contractor_details')}}
{{trans('manager/manager_create.enter_contractor_details')}}
{!! $errors->first('company_name','')!!}
{!! $errors->first('company_address','')!!}
{!! $errors->first('company_email','')!!}
{!! $errors->first('company_phone','')!!}
{!! $errors->first('aadhar_no','')!!}
{!! $errors->first('pan_no','')!!}
{!! $errors->first('gst_no','')!!}
{!! $errors->first('clra','')!!}
{!! $errors->first('enrollment_limit','')!!}
{!! $errors->first('enrollment_buffer_limit','')!!}
{!! $errors->first('daily_attendance_limit','')!!}
{!! $errors->first('valid_from', '')!!}
{!! $errors->first('valid_to', '')!!}


{{trans('manager/manager_create.attachments')}}
{{trans('manager/manager_create.add_documents')}}

{{ trans('common/common.attachmentCaption') }}

@php $userDetail = $manager->userDetail ?? null; $renderAttachmentPreview = function ($url, $fallbackText) { if (!$url) { return '' . e($fallbackText) . ''; } $extension = strtolower(pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_EXTENSION)); if (in_array($extension, ['doc', 'docx'])) { $previewUrl = '/assets/img/docx-icon.jpg'; } elseif ($extension === 'pdf') { $previewUrl = '/assets/img/pdf-icon.jpg'; } else { $previewUrl = $url; } return 'attachment'; }; $logoUrl = old('logo_attachment') ?: ($userDetail->logo_attachment ?? $manager->image ?? null); @endphp
{!! $renderAttachmentPreview(old('aadhar_card_preview') ?: ($userDetail->aadhar_card ?? null), 'Aadhar Card Attachment') !!}
{!! $errors->first('aadhar_card', '')!!}
{!! $renderAttachmentPreview(old('gst_attachment_preview') ?: ($userDetail->gst_attachment ?? null), 'GST Attachment') !!}
{!! $errors->first('gst_attachment', '')!!}
{!! $renderAttachmentPreview(old('pan_card_preview') ?: ($userDetail->pan_card ?? null), 'Pan Card Attachment') !!}
{!! $errors->first('pan_card', '')!!}
{!! $renderAttachmentPreview($logoUrl, 'Logo Attachment') !!}
{!! $errors->first('logo_attachment', '')!!}



{{trans('manager/manager_create.commission_config')}}
{{trans('manager/manager_create.enter_commission_config')}}
Late Coming
{!! $errors->first('late_coming_variance','')!!}
{!! $errors->first('late_coming_fault_perc','')!!}
{!! $errors->first('late_coming_max_allowed','')!!}
Short / Excess
{!! $errors->first('short_excess_variance','')!!}
{!! $errors->first('short_excess_fault_perc','')!!}
{!! $errors->first('short_excess_max_allowed','')!!}



{!! Form::close() !!} @endsection @push('footer-script') @endpush