File manager - Edit - /var/www/payraty/hris/resources/views/companyPolicy/edit.blade.php
Back
@php $plan = App\Models\Plan::first(); @endphp {{ Form::model($companyPolicy, ['route' => ['company-policy.update', $companyPolicy->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data', 'class' => 'needs-validation', 'novalidate']) }} <div class="modal-body"> @if (1==2) <div class="text-end"> <a href="#" class="btn btn-sm btn-primary" data-size="medium" data-ajax-popup-over="true" data-url="{{ route('generate', ['company-policy']) }}" data-bs-toggle="tooltip" data-bs-placement="top" title="{{ __('Generate') }}" data-title="{{ __('Generate Content With AI') }}"> <i class="fas fa-robot"></i>{{ __(' Generate With AI') }} </a> </div> @endif <div class="row"> <div class="col-lg-6 col-md-6 col-sm-6"> <div class="form-group"> {{ Form::label('branch', __('Branch'), ['class' => 'form-label']) }}<x-required></x-required> <div class="form-icon-user"> {{ Form::select('branch', $branch, null, ['class' => 'form-control', 'required' => 'required']) }} </div> </div> </div> <div class="col-lg-6 col-md-6 col-sm-6"> <div class="form-group"> {{ Form::label('title', __('Title'), ['class' => 'form-label']) }}<x-required></x-required> <div class="form-icon-user"> {{ Form::text('title', null, ['class' => 'form-control', 'placeholder' => __('Enter Company Policy Title')]) }} </div> </div> </div> <div class="col-lg-12 col-md-12 col-sm-12"> <div class="form-group"> {{ Form::label('description', __('Description'), ['class' => 'form-label']) }} <div class="form-icon-user"> {{ Form::textarea('description', null, ['class' => 'form-control', 'rows' => '3', 'placeholder' => __('Enter Description')]) }} </div> </div> </div> <div class="col-md-12"> <div class="form-group"> {{ Form::label('document', __('Attachment'), ['class' => 'form-label']) }}<x-required></x-required> <div class="choose-file form-group "> <label for="attachment"> <input type="file" class="form-control" name="attachment" id="attachment" onchange="document.getElementById('blah').src = window.URL.createObjectURL(this.files[0])" data-filename="attachment"> <hr> @php $policyPath = \App\Models\Utility::get_file('uploads/companyPolicy/'); $logo = \App\Models\Utility::get_file('uploads/companyPolicy/'); @endphp <img id="blah" alt="your image" width="100" src="@if ($companyPolicy->attachment) {{ $policyPath . $companyPolicy->attachment }}@else{{ $logo . 'defualt.png' }} @endif" /> </label> </div> </div> </div> </div> </div> <div class="modal-footer"> <input type="button" value="{{ __('Cancel') }}" class="btn btn-light" data-bs-dismiss="modal"> <input type="submit" value="{{ __('Update') }}" class="btn btn-primary"> </div> {{ Form::close() }}
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings