@extends('layout.app') @push('styles') @endpush @section('content')
@method('PUT') @csrf
@if (checkSettings('pictureUpload') == 'enable' && showAnyFormField([ 'customer_profile_picture', 'customer_agrement', 'form_picture', 'building_photo', 'client_door_picture', 'onu_router_info', ])) @if ($r->pop->bill_generate == 'yes' || checkSettings('file_up_for_own_other') == 'enable')
@if (showFormField('customer_profile_picture'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'customer_profile_picture/' . $r->clientsinfo->customer_profile_picture, ); @endphp No Image @else No Image @endif clientsinfo->customer_profile_picture == null) {{ checkRequired('customer_profile_picture', 'required') }} @endif>
@endif @if (showFormField('customer_agrement'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'customer_agrement/' . $r->clientsinfo->customer_agrement, ); @endphp No Image @else No Image @endif clientsinfo->customer_agrement == null) {{ checkRequired('customer_agrement_required', 'required') }} @endif>
@endif @if (showFormField('form_picture'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'profilePicture/' . $r->clientsinfo->profilePicture, ); @endphp No Image @else No Image @endif
@endif @if (showFormField('building_photo'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url('picture/' . $r->clientsinfo->picture); @endphp No Image @else No Image @endif clientsinfo->picture == null) {{ checkRequired('building_photo_required', 'required') }} @endif>
@endif @if (showFormField('client_door_picture'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'client_door/' . $r->clientsinfo->client_door, ); @endphp No Image @else No Image @endif clientsinfo->client_door == null) {{ checkRequired('dore_picture_required', 'required') }} @endif>
@endif @if (showFormField('onu_router_info'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url( 'onu_router_info/' . $r->clientsinfo->onu_router_info, ); @endphp No Image @else No Image @endif clientsinfo->onu_router_info == null) {{ checkRequired('onu_router_info', 'required') }} @endif>
@endif
@endif @endif

Service Information

@if (checkAPI())
@can('ignore-mikrotik-check') @if (showFormField('ignore_mikrotik_check')) @elseif ($r->ignoreMKCheck == 1) @endif @endcan @if (Auth::user()->can('static_manage')) @endif
@endif
@can('pop_change_on_client_edit')
@error('pop_id')
{{ $message }}
@enderror
@else
@endcan
isStatic) required @endif @cannot('client-username-edit') readonly @endcannot>
@error('userid')
{{ $message }}
@enderror
isStatic) required @endif> @error('password')
{{ $message }}
@enderror
@if (checkSettings('customer_code') == 'enable') @if (showFormField('customer_code'))
@error('customer_code')
{{ $message }}
@enderror
@else @endif @endif
@if (showFormField('mac'))
@error('mac')
{{ $message }}
@enderror
@else @endif @if (showFormField('expire_date'))
@if (auth()->user()->can('extend-temporary-dedline')) @if ($r->pops->bill_generate == 'yes')
@endif @else @endif
@else @endif @if (checkSettings('static_ip_manage') == 'enable' && $r->isStatic) @if (showFormField('ethernet_port'))
@error('port')
{{ $message }}
@enderror
@else @endif @endif @if (showFormField('static_ip'))
@if (!checkAPI()) @error('ip_address')
{{ $message }}
@enderror @else @if (checkSettings('static-ip-check') == 'enable') @elseif(checkSettings('static_ip_manage') == 'enable') @else @error('ip_address')
{{ $message }}
@enderror @endif @endif
@else @endif @if (checkSettings('ipv_6_for_radius') == 'enable') @if (showFormField('ipv6'))
@error('ipv6')
{{ $message }}
@enderror
@else @endif @endif @if (checkSettings('radius_customer_bandwidth_limit') == 'enable') @if (auth()->user()->can('apply-bandwidth-limit')) @if (showFormField('bandwidth_limit'))
@error('bandwidth_limit')
{{ $message }}
@enderror
@else @endif @else @endif @endif @if (checkSettings('parmanent-discount') == 'enable' && $r->pop->bill_generate == 'yes') @if (auth()->user()->can('parmanent-discount')) @if (showFormField('permanent_discount'))
@error('mac')
{{ $message }}
@enderror
@else @endif @else @endif @endif @if (checkSettings('customer-id-insert') == 'enable')
@error('customer_id')
{{ $message }}
@enderror
@endif @if (showFormField('distribution_point'))
@error('distribution_point')
{{ $message }}
@enderror
@else @endif @if (showFormField('connection_type'))
@error('connection_type')
{{ $message }}
@enderror
@else @endif @if (showFormField('customer_type'))
@error('customer_type')
{{ $message }}
@enderror
@else @endif @if (checkSettings('single_client_billing_type') == 'enable') @if(auth()->user()->can('single_client_billing_type'))
@else @endif @endif

Basic Information

@error('client_name')
{{ $message }}
@enderror
@if (showFormField('occupation'))
@error('occupation')
{{ $message }}
@enderror
@else @endif @if (showFormField('company_name'))
@error('company_name')
{{ $message }}
@enderror
@else @endif @if (showFormField('designation'))
@error('designation')
{{ $message }}
@enderror
@else @endif @if (auth()->user()->can('join-date-modify')) @if (showFormField('join_date'))
@error('joinDate')
{{ $message }}
@enderror
@else @endif @else @endif @if (showFormField('dob'))
@error('dob')
{{ $message }}
@enderror
@else @endif @if (showFormField('father_name'))
@error('father_name')
{{ $message }}
@enderror
@else @endif @if (showFormField('mother_name'))
@error('mother_name')
{{ $message }}
@enderror
@else @endif
@error('contact_no')
{{ $message }}
@enderror
@if (showFormField('other_contact'))
@error('other_contact')
{{ $message }}
@enderror
@else @endif @if (showFormField('email'))
@error('email')
{{ $message }}
@enderror
@else @endif @if (showFormField('national_id'))
@error('national_id')
{{ $message }}
@enderror
@else @endif @if (checkSettings('national_id_picture') == 'enable') @if (showFormField('nid_image'))
@if (checkSettings('store_image_to_s3') == 'enable') @php $s3Url = Storage::disk('s3')->url('nationalId/' . $r->clientsinfo->nid_image); @endphp No Image @else No Image @endif clientsinfo->nid_image == null) {{ checkRequired('national_id_picture', 'required') }} @endif> @error('nid_image')
{{ $message }}
@enderror
@endif @endif @if (showFormField('passport_no'))
@error('passport_no')
{{ $message }}
@enderror
@else @endif
@if (showFormGroup('Address') || showFormGroup('Building Owner Contact'))

Address

@endif
@if (showFormField('division'))
@else @endif @if (showFormField('district'))
@else @endif @if (showFormField('upazila'))
@else @endif @if (showFormField('thana'))
@else @endif @if (showFormField('area'))
@if (checkSettings('area-dropdown') == 'enable') @else @endif @error('area')
{{ $message }}
@enderror
@else @endif @if (showFormField('block_sector'))
@error('block_sector')
{{ $message }}
@enderror
@else @endif @if (showFormField('road_name'))
@error('road_name')
{{ $message }}
@enderror
@else @endif @if (showFormField('road_no'))
@error('road_no')
{{ $message }}
@enderror
@else @endif @if (showFormField('building_name'))
@error('building_name')
{{ $message }}
@enderror
@else @endif @if (showFormField('building_no'))
@error('building_no')
{{ $message }}
@enderror
@else @endif @if (showFormField('flat_no'))
@error('flat_no')
{{ $message }}
@enderror
@else @endif @if (showFormField('owner_name'))
@error('owner_name')
{{ $message }}
@enderror
@else @endif @if (showFormField('owner_contact'))
@error('onwer_number')
{{ $message }}
@enderror
@else @endif @if (checkSettings('box') == 'disable') @if (showFormField('box'))
@if (checkSettings('select_option_for_box_and_ponsetting') == 'enable') @else @endif
@else @if (checkSettings('select_option_for_box_and_ponsetting') == 'enable') @endif @endif @endif @if (checkSettings('box') == 'enable') @if (showFormField('box'))
@else @endif @endif @if (globalPermission('manage-map')) @if (showFormField('map_box'))
@else @if (!(showFormField('box') && checkSettings('box') == 'disable' && checkSettings('select_option_for_box_and_ponsetting') == 'enable')) @endif @endif @endif @if (showFormField('latitude'))
@else @endif @if (showFormField('longitude'))
@else @endif @if (checksettings('networkdiagram') == 'enable') @if (showFormField('diagram_box'))
@error('diagram_box_id')
{{ $message }}
@enderror
@else @endif @endif
@if (showFormGroup('Connection Information') || showFormField('client_payment_amount') || showFormField('remarks') || $r->marketing_employee_id || auth()->user()->can('change-marketing-employee-in-client-edit') || checkSettings('technical_box') == 'enable')

Connection Information

@endif
@if (showFormField('cable_type'))
@else @endif @if (auth()->user()->can('edit_cable_meter')) @if (showFormField('cable_from'))
@else @endif @if (showFormField('cable_to'))
@else @endif @if (showFormField('cable_from_2'))
@else @endif @if (showFormField('cable_to_2'))
@else @endif @if (showFormField('total_cable'))
@else @endif @if (showFormField('cable_id'))
@error('cable_id')
{{ $message }}
@enderror
@else @endif @else @endif @if (showFormField('cat_type'))
@else @endif @if (showFormField('cat_length'))
@error('cat_length')
{{ $message }}
@enderror
@else @endif @if (checkSettings('olt-pon') == 'enable') @if (showFormField('onu_serial'))
@if (checkSettings('select_option_for_box_and_ponsetting') == 'enable') @else @endif @error('onu_serial')
{{ $message }}
@enderror
@else @endif @if (showFormField('olt_no'))
@error('olt_pon')
{{ $message }}
@enderror
@else @endif @if (showFormField('olt_card_slot'))
@error('olt_no')
{{ $message }}
@enderror
@else @endif @if (showFormField('pon_port'))
@error('pon_port')
{{ $message }}
@enderror
@else @endif @endif @if (auth()->user()->can('customer-marketed-by')) @if (showFormField('marketed_by'))
@if (auth()->user()->can('change_marketed_by'))
@else
@endif {{-- @endif --}}
@else @endif @else @endif @if (checkSettings('source_name') == 'enable') @if (showFormField('source_name'))
@error('source_name')
{{ $message }}
@enderror
@else @endif
@error('client_id')
{{ $message }}
@enderror
@endif @can('select-recommender') @if (showFormField('recommender'))
@error('recommender_id')
{{ $message }}
@enderror
@else @endif @endcan @if (showFormField('otc'))
@error('otc')
{{ $message }}
@enderror
@else @endif @if (checkSettings('free_client') == 'enable') @can('add-free-client') @if (showFormField('free_client'))
@else @endif @endcan @endif @if (showFormField('remote_access'))
@else @endif @if (showFormField('remote_access_username'))
@error('remote_access_username')
{{ $message }}
@enderror
@else @endif @if (showFormField('remote_access_password'))
@error('remote_access_password')
{{ $message }}
@enderror
@else @endif @if (showFormField('remote_access_port'))
@error('remote_access_port')
{{ $message }}
@enderror
@else @endif @if (globalPermission('manage-line-man')) @if (showFormField('line_man'))
@error('line_man_id')
{{ $message }}
@enderror
@else @endif @endif @if (checkSettings('setClientPaymentAmountToClient') == 'enable') @if (showFormField('client_payment_amount'))
@error('client_payment_amount')
{{ $message }}
@enderror
@else @endif @endif @if ($r->marketing_employee_id)
@error('marketing_employee_id')
{{ $message }}
@enderror
@endif @can('change-marketing-employee-in-client-edit')
@error('marketing_employee_id')
{{ $message }}
@enderror
@endcan @if (checkSettings('technical_box') == 'enable')
@error('technical_box_id')
{{ $message }}
@enderror
@endif @if (showFormField('remarks'))
@error('remarks')
{{ $message }}
@enderror
@else @endif
@endsection @push('js') @endpush @section('ajax') @endsection