Файловый менеджер - Редактировать - /home/clickysoft/public_html/travel-guru.clickysoft.net/resources/views/admin/user-review/add.blade.php
Назад
@extends('admin.layouts.master') @section('title', 'Add Review') @push('admin-styles') <link rel="stylesheet" href="{{ asset('assets/admin/vendor/libs/bootstrap-select/bootstrap-select.css') }}"> <style> body{ display: flex; justify-content: center; align-items: center; height: 100vh; } .rate { float: left; height: 46px; padding: 0 10px; } .rate:not(:checked) > input { position:absolute; top:-9999px; } .rate:not(:checked) > label { float:right; width:1em; overflow:hidden; white-space:nowrap; cursor:pointer; font-size:30px; color:#ccc; } .rate:not(:checked) > label:before { content: '★ '; } .rate > input:checked ~ label { color: #ffc700; } .rate:not(:checked) > label:hover, .rate:not(:checked) > label:hover ~ label { color: #deb217; } .rate > input:checked + label:hover, .rate > input:checked + label:hover ~ label, .rate > input:checked ~ label:hover, .rate > input:checked ~ label:hover ~ label, .rate > label:hover ~ input:checked ~ label { color: #c59b08; } </style> @endpush @section('content') <div class="container-xxl flex-grow-1 container-p-y"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-8 col-xs-9 bhoechie-tab-container" style="background-color:white;"> <div class="row"> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 bhoechie-tab"> <!-- flight section --> <div class="bhoechie-tab-content active"> <div class="p-5 mb-4"> <h5 class="card-header">Add Review</h5> <div class="card-body"> <form action="{{ route('user.review.add.data') }}" method="POST"> @csrf @include('partials.alert') <div class="row mt-2"> <div class="col-md-6 mb-6"> <label class="form-label" for="user_name">User Name <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <input type="text" name="user_name" id="user_name" class="form-control" value="{{old('user_name')}}" placeholder="User Name"> </div> <div class="col-md-6 mb-6"> <label class="form-label" for="user_email">User Email <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <input type="text" name="user_email" id="user_email" class="form-control" value="{{old('user_email')}}" placeholder="User Email"> </div> <div class="col-md-12 mb-6"> <label class="form-label" for="accommodation_type">Accommodation Type <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="form-group"> <select name="accommodation_type" id="accommodation_type" onchange="handleAccommodationChange()" class="form-select"> <option value="Resort" @selected(old('accommodation_type') == 'Resort')>Resort</option> <option value="Liveaboard" @selected(old('accommodation_type') == 'Liveaboard')>Liveaboard</option> </select> </div> </div> </div> <div class="row mt-3" id="resortFields"> <div class="col-md-12 mb-6"> <label class="form-label" for="resort_id">Select Resort <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="form-group"> <select name="resort_id" class="form-select" id="resort_id"> @foreach ($resorts as $resort) <option value="{{ $resort->id }}" @selected(old('resort_id') == $resort->id)>{{ $resort->title }} </option> @endforeach </select> </div> </div> </div> <div class="row mt-3" id="liveaboardFields" style="display:none;"> <div class="col-md-12 mb-6"> <label class="form-label" for="liveaboard_id">Select Liveaboard <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="form-group"> <select name="liveaboard_id" class="form-select" id="liveaboard_id"> @foreach ($liveaboards as $liveaboard) <option value="{{ $liveaboard->id }}" @selected(old('liveaboard_id') == $liveaboard->id)>{{ $liveaboard->title }} </option> @endforeach </select> </div> </div> </div> <div class="row mt-2"> <div class="col-md-3 mb-6"> <div class="row mt-2"> <label class="form-label">Overall Rating <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="col-md-12 mb-12"> <div class="rate"> <input type="radio" id="star5" name="overall_rating" value="5" @checked(old('overall_rating') == 5)/> <label for="star5" title="text">5 stars</label> <input type="radio" id="star4" name="overall_rating" value="4" @checked(old('overall_rating') == 4)/> <label for="star4" title="text">4 stars</label> <input type="radio" id="star3" name="overall_rating" value="3" @checked(old('overall_rating') == 3)/> <label for="star3" title="text">3 stars</label> <input type="radio" id="star2" name="overall_rating" value="2" @checked(old('overall_rating') == 2)/> <label for="star2" title="text">2 stars</label> <input type="radio" id="star1" name="overall_rating" value="1" @checked(old('overall_rating') == 1)/> <label for="star1" title="text">1 star</label> </div> </div> </div> </div> <div class="col-md-3 mb-6"> <div class="row mt-2"> <label class="form-label">Marine Life Rating <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="col-md-12 mb-12"> <div class="rate"> <input type="radio" id="marine-star5" name="marine_life_rating" value="5" @checked(old('marine_life_rating') == 5)/> <label for="marine-star5" title="text">5 stars</label> <input type="radio" id="marine-star4" name="marine_life_rating" value="4" @checked(old('marine_life_rating') == 4)/> <label for="marine-star4" title="text">4 stars</label> <input type="radio" id="marine-star3" name="marine_life_rating" value="3" @checked(old('marine_life_rating') == 3)/> <label for="marine-star3" title="text">3 stars</label> <input type="radio" id="marine-star2" name="marine_life_rating" value="2" @checked(old('marine_life_rating') == 2)/> <label for="marine-star2" title="text">2 stars</label> <input type="radio" id="marine-star1" name="marine_life_rating" value="1" @checked(old('marine_life_rating') == 1)/> <label for="marine-star1" title="text">1 star</label> </div> </div> </div> </div> <div class="col-md-3 mb-6"> <div class="row mt-2"> <label class="form-label">Food Rating <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="col-md-12 mb-12"> <div class="rate"> <input type="radio" id="food-star5" name="food_rating" value="5" @checked(old('food_rating') == 5)/> <label for="food-star5" title="text">5 stars</label> <input type="radio" id="food-star4" name="food_rating" value="4" @checked(old('food_rating') == 4)/> <label for="food-star4" title="text">4 stars</label> <input type="radio" id="food-star3" name="food_rating" value="3" @checked(old('food_rating') == 3)/> <label for="food-star3" title="text">3 stars</label> <input type="radio" id="food-star2" name="food_rating" value="2" @checked(old('food_rating') == 2)/> <label for="food-star2" title="text">2 stars</label> <input type="radio" id="food-star1" name="food_rating" value="1" @checked(old('food_rating') == 1)/> <label for="food-star1" title="text">1 star</label> </div> </div> </div> </div> <div class="col-md-3 mb-6"> <div class="row mt-2"> <label class="form-label">Accommodation Rating <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <div class="col-md-12 mb-12"> <div class="rate"> <input type="radio" id="accommodation-star5" name="accommodation_rating" value="5" @checked(old('accommodation_rating') == 5)/> <label for="accommodation-star5" title="text">5 stars</label> <input type="radio" id="accommodation-star4" name="accommodation_rating" value="4" @checked(old('accommodation_rating') == 4)/> <label for="accommodation-star4" title="text">4 stars</label> <input type="radio" id="accommodation-star3" name="accommodation_rating" value="3" @checked(old('accommodation_rating') == 3)/> <label for="accommodation-star3" title="text">3 stars</label> <input type="radio" id="accommodation-star2" name="accommodation_rating" value="2" @checked(old('accommodation_rating') == 2)/> <label for="accommodation-star2" title="text">2 stars</label> <input type="radio" id="accommodation-star1" name="accommodation_rating" value="1" @checked(old('accommodation_rating') == 1)/> <label for="accommodation-star1" title="text">1 star</label> </div> </div> </div> </div> <div class="col-md-12 mb-6"> <label class="form-label" for="message">Review Message <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <textarea class="form-control" name="message" maxlength="5000" id="message" placeholder="Enter Message" >{{ old('message') }}</textarea> </div> <div class="col-md-4 mb-6"> <label class="form-label" for="visiting_year">Visiting Year <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <select name="visiting_year" id="visiting_year" class="form-control"> @foreach(range(2024, 2000) as $visiting_year) <option value="{{$visiting_year}}" @selected(old('visiting_year') == $visiting_year)>{{$visiting_year}}</option> @endforeach </select> </div> <div class="col-md-4 mb-6"> <label class="form-label" for="visiting_month">Visiting Month <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <select name="visiting_month" id="visiting_month" class="form-control"> @foreach($months as $key => $month) <option value="{{$key}}" @selected(old('visiting_month') == $key)>{{$month}}</option> @endforeach </select> </div> <div class="col-md-4 mb-6"> <label class="form-label" for="status">Status <i class="fa fa-asterisk small-font text-danger" aria-hidden="true"></i> </label> <select name="status" id="status" class="form-control"> <option value="Needs Review" @selected(old('status') == 'Needs Review')>Needs Review</option> <option value="Published" @selected(old('status') == 'Published')>Published</option> <option value="Rejected" @selected(old('status') == 'Rejected')>Rejected</option> </select> </div> </div> <div class="row mt-3"> <div class="col-md-12"> <a href="{{ route('user.review') }}" class="btn btn-danger redirect-btn">Back</a> <button type="submit" class="btn btn-primary" onclick="showLoader()">Add</button> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </div> @endsection @push('admin-scripts') <script> $(document).ready(function () { setTimeout(function () { handleAccommodationChange() }, 500) }) function handleAccommodationChange() { const element = $('#accommodation_type') let selectedValue = element.val(); if (selectedValue === 'Resort') { document.getElementById('resortFields').style.display = 'block'; document.getElementById('liveaboardFields').style.display = 'none'; } else if (selectedValue === 'Liveaboard') { document.getElementById('resortFields').style.display = 'none'; document.getElementById('liveaboardFields').style.display = 'block'; } else { document.getElementById('resortFields').style.display = 'none'; document.getElementById('liveaboardFields').style.display = 'none'; } } </script> @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка