Файловый менеджер - Редактировать - /home/clickysoft/public_html/somni.clickysoft.net/resources/views/landlord/unit/edit.blade.php
Назад
@extends('landlord.layouts.landlord') @section('links') <link href="https://cdn.datatables.net/1.10.16/css/jquery.dataTables.min.css" rel="stylesheet"> <link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" /> @endsection @section('title', 'Landlord Dashboard - SOMNI') @section('content') <div class="db-backdrop"></div> <div class="main-section"> <div class="tooltip-text" id="tooltip1" tool-tip="1"> <div class="tooltip-close"> <button class="tt-close"><img src="{{asset('/images/close-tt.svg')}}" alt="" class="img-fluid"></button> </div> <div class="tooltip-head"> <h4>Navigation</h4> <p>From here you can view a quick snapshot of occupancy rates, upcoming maintenance, and financial summaries.</p> </div> <div class="hide-next-cta"> <div class="hide-tips"> <button class="hide-tips"><img src="{{asset('/images/hide-tt.svg')}}" alt="" class="hide-tt">Hide these tips</button> </div> <div class="next-tips"> <button class="next-tip-btn">Next</button> </div> </div> </div> <x-landlord-side-nav /> <main class="layout-main"> <div class="content-wrapper"> <section class="profile-edit"> <div class="container-fluid custom-container"> <div class="row "> <div class="col-md-12"> <div class="main-db-layout"> <x-landlord-mobile-widget :user="$user" :notifications="$notifications" :nCount="$nCount" /> <!--Here--> <div class="row"> <div class="col-md-12 col-lg-12"> <div class="row"> <div class="col-md-12"> <div class="maintenance-card"> <div class="cfh-main"> <div class="cash-flow-head"> <h4>Unit :{{$unit->number}}</h4> </div> <div class="cash-flow-drop drop-elip-thumb"> {{-- <button type="button" class="drop-ellipse-btn"> <img src="{{asset('/images/drop-ellipse.svg')}}" alt="" class="img-fluid"> </button> --}} </div> </div> @if (Session::has('error')) <label class="row justify-content-center custom_error">{{ Session::get('error') }}</label> @endif {{-- @if($errors->any()) @foreach($errors->all() as $error) <label class="row justify-content-center custom_error">{{ $error }}</label> @endforeach @endif --}} <div class="maintenance-table-main"> <div class="row"> <form action="{{route('landlord.update.unit', $unit->id)}}" method="POST" class="add-unit-main"> @csrf <div class="form-group"> <label for="number">Name:<span>*</span></label> <input type="text" name="number" class="form-control" value="{{ old('number', $unit->number) }}" required> @error('number') <div class="alert alert-danger">{{ $message }}</div> @enderror </div> <div class="form-group"> <label for="lease_term">Lease Term:<span>*</span></label> <select class="custom-select lease_term default_select select-selected" data-class="lease_term" name="lease_term" style="width: 100%" required> <option class="select-selected" value="">Please Select</option> @foreach(App\Models\Unit::LEASE_TERM_SELECT as $optionValue => $optionLabel) <option value="{{ $optionValue }}" {{ old('lease_term', $unit->lease_term) == $optionValue ? 'selected' : '' }}> {{ $optionLabel }} </option> @endforeach </select> @if($errors->has('lease_term')) <span class="text-danger">{{ $errors->first('lease_term') }}</span> @endif {{-- <input type="text" name="lease_term" class="form-control" value="{{ old('lease_term', $unit->lease_term) }}"> --}} </div> <div class="form-group"> <label for="layout_type">Unit Layout<span>*</span></label> <select class="custom-select layout_type default_select select-selected" data-class="layout_type" name="layout_type" style="width: 100%" required> <option class="select-selected" value="">Please Select</option> @foreach(App\Models\Unit::LAYOUT_TYPE as $optionValue => $optionLabel) <option value="{{ $optionValue }}" {{ old('layout_type', $unit->layout_type) == $optionValue ? 'selected' : '' }}> {{ $optionLabel }} </option> @endforeach </select> @if($errors->has('lease_term')) <span class="text-danger">{{ $errors->first('lease_term') }}</span> @endif </div> <div class="form-group"> <label for="amenities">{{ trans('cruds.unit.fields.amenity') }}<span>*</span></label> <select class="form-control select2 select2_with_search {{ $errors->has('amenities') ? 'is-invalid' : '' }}" name="amenities[]" id="amenities" multiple required> <option class="" value="">Please Select</option> @foreach(\App\Models\Amenity::all() as $id => $amenity) <option value="{{ $amenity->id }}" {{ (in_array($amenity->id, old('amenities', [])) || $unit->amenities->contains($id)) ? 'selected' : '' }}>{{ $amenity->name }}</option> @endforeach </select> @if($errors->has('amenities')) <span class="text-danger">{{ $errors->first('amenities') }}</span> @endif </div> <div class="form-group"> <label for="datePicks2">Rent Due Date<span>*</span></label> <div class="input-group date customDate datepicker" id="datepicker2"> <input type="text" class=" border-0 p-0" id="date" placeholder="Choose Date" name="rent_due_date" value="{{ isset($unit) && !empty($unit) ? $unit->rent_due_date : '' }}" required> <span class="input-group-append"> <img src="{{asset('/images/mini-date.svg')}}" alt="" class="img-fluid"> </span> </div> @if($errors->has('rent_due_date')) <span class="text-danger">{{ $errors->first('rent_due_date') }}</span> @endif </div> <div class="form-group"> <label for="datePicks2">Date Available</label> <div class="input-group date customDate datepicker" id="datepickerAvailable"> <input type="text" class=" border-0 p-0" id="date" placeholder="Choose Date" name="date_available" value="{{ isset($unit) && !empty($unit) ? $unit->available_date : '' }}" required> <span class="input-group-append"> <img src="{{asset('/images/mini-date.svg')}}" alt="" class="img-fluid"> </span> </div> </div> <div class="form-group "> <label for="">Unit Size <span>*</span></label> <div class="login-fields"> <input type="text" placeholder="Enter size of unit" name="unit_size" value="{{ isset($unit) && !empty($unit) ? $unit->size : '' }}" required> <div class="sq-ft-text"> <span>sq. ft.</span> </div> @if($errors->has('unit_size')) <span class="text-danger">{{ $errors->first('unit_size') }}</span> @endif </div> </div> <div class="form-group edit_unit_input"> <label for="">Monthly Rent <span>*</span></label> <div class="login-fields"> <div class="rent-field"> <div class="dollar-sign"> <p>$</p> </div> <input type="number" step=".01" placeholder="20.99" name="monthly_rent" value="{{ isset($unit) && !empty($unit) ? $unit->monthly_rent : '' }}" required> </div> @if($errors->has('monthly_rent')) <span class="text-danger">{{ $errors->first('monthly_rent') }}</span> @endif </div> </div> <div class="form-group edit_unit_input"> <label for="">Security Deposit <span>*</span></label> <div class="login-fields"> <div class="rent-field"> <div class="dollar-sign"> <p>$</p> </div> <input type="number" step=".01" placeholder="20.99" name="security_deposit" value="{{ isset($unit) && !empty($unit) ? $unit->security_deposit : '' }}" required> </div> @if($errors->has('security_deposit')) <span class="text-danger">{{ $errors->first('security_deposit') }}</span> @endif </div> </div> <div class="form-group edit_unit_input"> <label for="">Number of Bedrooms<span>*</span></label> <select class="custom-select no_of_bedrooms default_select select-selected" data-class="no_of_bedrooms" name="no_of_bedrooms" style="width: 100%" required> <option class="select-selected" value="">Please Select</option> <option class="select-selected" value="1" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 1 ) ? 'selected' : ''}}>1</option> <option class="select-selected" value="2" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 2 ) ? 'selected' : ''}}>2</option> <option class="select-selected" value="3" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 3 ) ? 'selected' : ''}}>3</option> <option class="select-selected" value="4" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 4 ) ? 'selected' : ''}}>4</option> <option class="select-selected" value="5" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 5 ) ? 'selected' : ''}}>5</option> <option class="select-selected" value="6" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 6 ) ? 'selected' : ''}}>6</option> <option class="select-selected" value="7" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 7 ) ? 'selected' : ''}}>7</option> <option class="select-selected" value="8" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 8 ) ? 'selected' : ''}}>8</option> <option class="select-selected" value="9" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 9 ) ? 'selected' : ''}}>9</option> <option class="select-selected" value="10" {{( isset($unit) && !empty($unit) && $unit->no_of_bedrooms == 10 ) ? 'selected' : ''}}>10</option> </select> @if($errors->has('no_of_bedrooms')) <span class="text-danger">{{ $errors->first('no_of_bedrooms') }}</span> @endif </div> <div class="form-group edit_unit_input"> <label for="">Number of Bathrooms<span>*</span></label> <select class="custom-select no_of_bathrooms default_select select-selected" data-class="no_of_bathrooms" name="no_of_bathroom" style="width: 100%" required> <option class="select-selected" value="">Please Select</option> <option class="select-selected" value="1" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 1 ) ? 'selected' : ''}}>1</option> <option class="select-selected" value="2" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 2 ) ? 'selected' : ''}}>2</option> <option class="select-selected" value="3" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 3 ) ? 'selected' : ''}}>3</option> <option class="select-selected" value="4" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 4 ) ? 'selected' : ''}}>4</option> <option class="select-selected" value="5" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 5 ) ? 'selected' : ''}}>5</option> <option class="select-selected" value="6" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 6 ) ? 'selected' : ''}}>6</option> <option class="select-selected" value="7" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 7 ) ? 'selected' : ''}}>7</option> <option class="select-selected" value="8" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 8 ) ? 'selected' : ''}}>8</option> <option class="select-selected" value="9" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 9 ) ? 'selected' : ''}}>9</option> <option class="select-selected" value="10" {{( isset($unit) && !empty($unit) && $unit->no_of_bathroom == 10 ) ? 'selected' : ''}}>10</option> </select> @if($errors->has('no_of_bathrooms')) <span class="text-danger">{{ $errors->first('no_of_bathrooms') }}</span> @endif </div> {{-- <div class="form-group description_edit_unit"> <label for="">Description<span>*</span></label> <textarea name="description">{{$unit->description ?? ''}}</textarea> </div> --}} <div class="form-group submit_btn"> <button type="submit" class="transaction-view-btn">Save</button> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> </section> </div> </main> </div> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/chart.js"></script> <script src="https://www.gstatic.com/firebasejs/8.3.2/firebase.js"></script> <link href="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.min.css" rel="stylesheet"> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.7.27/dist/sweetalert2.all.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/js/select2.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-datepicker/1.9.0/js/bootstrap-datepicker.min.js"></script> <script src="{{asset('/js/global.js')}}"></script> <script src="{{asset('/js/dashboard-overview.js')}}"></script> <script src="{{asset('/js/edit_unit.js')}}"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script> @if(!empty($verification)) <x-email-verification-popup :verification=$verification /> @endif @if(\Session::has('success')) <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.success('{!! \Session::get("success") !!}'); </script> @endif @if(\Session::has('error')) <script> toastr.options = { "closeButton": true, "debug": false, "newestOnTop": false, "progressBar": false, "positionClass": "toast-top-right", "preventDuplicates": false, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } toastr.error('{!! \Session::get("error") !!}'); </script> @endif @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка