|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/account.appointkrypt.com/resources/views/service/ |
Upload File : |
{{ Form::open(['route' => ['service.store', ['business_id' => $business->id]], 'method' => 'post', 'enctype' => 'multipart/form-data']) }}
<div class="modal-body">
<div class="row">
<div class="col-md-12">
<div class="form-group">
{{Form::label('name',__('Service Name'),['class'=>'form-label']) }}
{{Form::text('name',null,array('class'=>'form-control','placeholder'=>__('Enter Service Name'),'required'=>'required'))}}
@error('name')
<small class="invalid-name" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{Form::label('image',__('Image'),['class'=>'form-label']) }}
<div class="choose-files ">
<label for="image">
<div class=" bg-primary "> <i class="ti ti-upload px-1"></i>{{ __('Choose file here') }}</div>
<input type="file" class="form-control file" name="image"
id="image" data-filename="image"
onchange="document.getElementById('blah').src = window.URL.createObjectURL(this.files[0])">
</label>
<img id="blah" width="100" src="" />
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{Form::label('category',__('category'),['class'=>'form-label']) }}
{{ Form::select('category', $category, null, ['class' => 'form-control', 'required' => 'required']) }}
@error('category')
<small class="invalid-category" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{Form::label('price',__('Price'),['class'=>'form-label']) }}
{{Form::number('price',null,array('class'=>'form-control','placeholder'=>__('Enter Price'),'required'=>'required'))}}
@error('price')
<small class="invalid-price" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{Form::label('duration',__('Duration'),['class'=>'form-label']) }}
{{Form::text('duration',null,array('class'=>'form-control','placeholder'=>__('Enter Duration in Minute 30'),'required'=>'required'))}}
@error('duration')
<small class="invalid-duration" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
<div class="col-md-12">
<div class="form-group">
{{Form::label('description',__('Description'),['class'=>'form-label']) }}
{{Form::textarea('description',null,array('class'=>'form-control','placeholder'=>__('Enter Description'),'required'=>'required','rows' => '4'))}}
@error('description')
<small class="invalid-description" role="alert">
<strong class="text-danger">{{ $message }}</strong>
</small>
@enderror
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-light" data-bs-dismiss="modal">{{__('Cancel')}}</button>
{{Form::submit(__('Create'),array('class'=>'btn btn-primary'))}}
</div>
{{Form::close()}}