@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('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('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('landmark', __( 'app.landmark' ) . ':',['class'=>'form-label']) !!}
{!! Form::text('landmark', $location->landmark ?? '', ['class' => 'form-control', 'placeholder' => __( 'app.landmark' ) ]); !!}
@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')]); !!}
@endcomponent
{!! Form::close() !!}
@section('javascript')
@endsection