@if(isset($location)) {!! Form::open(['url' => action([\App\Http\Controllers\BusinessLocationController::class, 'update'], [$location->id]), 'method' => 'PUT', 'id' => 'business_location_add_form' ]) !!} @method('PUT') @else {!! Form::open(['url' => action([\App\Http\Controllers\BusinessLocationController::class, 'store']), 'method' => 'post', 'id' => 'business_location_add_form' ,'class'=>'needs-validation' , 'novalidate' ]) !!} @endif
@include('layouts.partials.messages')
@component('components.widget', ['title' => __('app.invoice_help'),'icon' => __('')])
{!! Form::label('name', __( 'app.business_location_name' ) . ':*',['class'=>'form-label']) !!} {!! Form::text('name', $location->name ?? '', ['class' => 'form-control' ,'aria-invalid'=>true,'aria-invalid'=>true,'data-validation-required-message'=> __('app.business_location_name')." Is Required", 'placeholder' => __( 'app.business_location_name' ) ]); !!}
{!! Form::label('location_id', __( 'app.business_location_id' ) . ':',['class'=>'form-label']) !!} {!! Form::text('location_id', $location->location_id ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.business_location_id' ) ]); !!}
{!! Form::label('email', __( 'app.email' ) . ':',['class'=>'form-label']) !!} {!! Form::text('email', $location->email ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.email' ) ]); !!}
{!! Form::label('mobile', __( 'app.mobile' ) . ':',['class'=>'form-label']) !!} {!! Form::number('mobile', $location->mobile ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.mobile') , 'maxlength'=>11,'aria-invalid'=>false,'data-validation-required-message'=> __('app.mobile')." Maximum Length is 11"]); !!}
{!! Form::label('alternate_number', __( 'app.alternate_number' ) . ':',['class'=>'form-label']) !!} {!! Form::text('alternate_number', $location->alternate_number ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.alternate_number')]); !!}
{!! Form::label('website', __( 'app.website' ) . ':',['class'=>'form-label']) !!} {!! Form::text('website', $location->website ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.website')]); !!}
@endcomponent
@component('components.widget', ['title' => __('app.location_info'),'icon' => __('')])
{!! Form::label('contact_person_name', __('app.contact_person_name') . ':',['class'=>'form-label']) !!} @show_tooltip(__('app.contact_person_name')) {!! Form::text('contact_person_name', $location->contact_person_name ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.contact_person_name' ) ]); !!}
{!! Form::label('contact_number', __( 'app.contact_number' ) . ':',['class'=>'form-label']) !!} {!! Form::number('contact_number', $location->contact_number ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.contact_number' ) ,'maxlength'=>11,'aria-invalid'=>false,'data-validation-required-message'=> __('app.contact_number')." Maximum Length is 11" ]); !!}
{!! Form::label('landmark', __( 'app.landmark' ) . ':',['class'=>'form-label']) !!} {!! Form::text('landmark', $location->landmark ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.landmark' ) ]); !!}
{!! Form::label('country', __( 'app.country' ) . ':*',['class'=>'form-label']) !!}
{!! Form::label('state', __( 'app.state' ) . ':*',['class'=>'form-label']) !!}
{!! Form::label('city', __( 'app.city' ) . ':*',['class'=>'form-label']) !!}
{!! Form::label('zip_code', __( 'app.zip_code' ) . ':',['class'=>'form-label']) !!} {!! Form::text('zip_code', $location->zip_code ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.zip_code'),'aria-invalid'=>true,'data-validation-required-message'=> __('app.zip_code')." Is Required" ]); !!}
@endcomponent
@component('components.widget', ['title' => __('app.other_location_info'),'icon' => __('')])
{!! Form::label('selling_price_group_id', __('app.default_selling_price_group') . ':',['class'=>'form-label']) !!} @show_tooltip(__('app.location_price_group_help')) {!! Form::select('selling_price_group_id', $price_groups, $location->selling_price_group_id ?? '', ['class' => 'form-select select2', 'placeholder' => __('app.please_select')]); !!}
{!! Form::label('invoice_scheme_id', __('app.invoice_scheme_for_pos') . ':*',['class'=>'form-label']) !!} @show_tooltip(__('tooltip.invoice_scheme')) {!! Form::select('invoice_scheme_id', $invoice_schemes, $location->invoice_scheme_id ?? '', ['class' => 'form-select select2', 'required' ,'aria-invalid'=>true,'data-validation-required-message'=> __('app.invoice_scheme_for_pos')." Is Required", 'placeholder' => __('app.please_select')]); !!}
{!! Form::label('invoice_layout_id', __('app.invoice_layout_for_pos') . ':*',['class'=>'form-label']) !!} @show_tooltip(__('tooltip.invoice_layout')) {!! Form::select('invoice_layout_id', $invoice_layouts, $location->invoice_layout_id ?? '', ['class' => 'form-select select2', 'required','aria-invalid'=>true,'data-validation-required-message'=> __('app.invoice_layout_for_pos')." Is Required", 'placeholder' => __('app.please_select')]); !!}
{!! Form::label('sale_invoice_scheme_id', __('app.invoice_scheme_for_sale') . ':*',['class'=>'form-label']) !!} {!! Form::select('sale_invoice_scheme_id', $invoice_schemes, $location->sale_invoice_scheme_id ?? '', ['class' => 'form-select select2', 'required','aria-invalid'=>true,'data-validation-required-message'=> __('app.invoice_scheme_for_sale')." Is Required", 'placeholder' => __('app.please_select')]); !!}
{!! Form::label('sale_invoice_layout_id', __('app.invoice_layout_for_sale') . ':*',['class'=>'form-label']) !!} @show_tooltip(__('app.invoice_layout_for_sale_tooltip')) {!! Form::select('sale_invoice_layout_id', $invoice_layouts, $location->sale_invoice_layout_id ?? '', ['class' => 'form-select select2', 'required','aria-invalid'=>true,'data-validation-required-message'=> __('app.invoice_layout_for_sale')." Is Required", 'placeholder' => __('app.please_select')]); !!}
@endcomponent
{!! Form::close() !!} @section('javascript') @endsection