Файловый менеджер - Редактировать - /home/clickysoft/public_html/rgr.clickysoft.net/resources/views/practices.blade.php
Назад
@extends('layouts.app') @section('title') {{-- @if (Auth::user()->email_verified_at == null) --}} @if (false) Verify Email address First @else Practices @endif @endsection @section('content') <style> .nearistDeactice { pointer-events: none; background: #cfcfcf; } </style> {{-- @if (Auth::user()->email_verified_at == null) --}} @if (false) <!-- BANNER SECTION BEGIN --> <section class="search-banner"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-12"> <div class="listing-box text-white"> @include('layouts.flash-message') Before proceeding, please check your email for a verification link. If you did not receive the <a href=" /email/resend" class="d-inline btn btn-link p-0"> click here to request another </a>. </div> </div> </div> </div> </section> @else <!-- BANNER SECTION BEGIN --> <section class="search-banner"> <div class="container"> <div class="row"> <div class="col-md-12 col-sm-12 col-12"> <form action="/" method="GET"> <div class="main-flex-btn"> <div class="search-banner-fields"> <div class="treatment-field"> <select class="form-control" name="treatments" id="treatments"> <option value=""></option> @foreach ($allTreatments as $treatments) <option {{ request()->treatments == $treatments->id ? 'selected' : '' }} value="{{ $treatments->id }}">{{ $treatments->title }}</option> @endforeach </select> </div> <div class="practice-bar"> {{-- <div class="custom-control custom-switch"> <input type="checkbox" class="custom-control-input" id="customSwitch1"> <label class="custom-control-label" for="customSwitch1"></label> </div> --}} <input type="button" id="nearist" onclick="showlocation()" class="btn btn-default text-dark " tabindex="-1" value="Sort by closest practice to me"> <input type="button" id="nearist2" onclick="showlocation()" class="btn btn-default text-white mobile" tabindex="-1" value="Sort by closest practice to me"> <input type="hidden" name="lat" id="lat" value=""> <input type="hidden" name="long" id="long" value=""> </div> <div class="treatment-field"> <select class="form-control" name="practice_id" id="practice_id"> <option value=""></option> @foreach ($allPractices as $practice) @php $practiceSpecialities = \App\Models\PracticeSpeciality::getByPracticeIdToSpecialityIds($practice->id); @endphp {{-- @if ($practice->id == Auth::user()->practice_id) --}} @if (false) @elseif (count($practiceSpecialities) == 0) @else <option {{ request()->practice_id == $practice->id ? 'selected' : '' }} value="{{ $practice->id }}">{{ $practice->name }}</option> @endif @endforeach </select> </div> {{-- <div class="treatment-field"> <input type="text" class="form-control" name="practice_id" value="{{ request()->get('practice_id') != null ? request()->get('practice_id') : '' }}"> </div> --}} </div> <div class="search-icon-btn"> <button type="submit" class="search-icon-link"><i class="fa fa-search" aria-hidden="true"></i></button> <button type="button" class="search-mob-btn">Search</button> </div> </div> <p class="text-white"><strong> To search for the closest practices, please allow the browser location option.</strong></p> </form> <div class="listing-box"> <ul class="listing-box-main"> </ul> </div> </div> </div> </div> </section> <!-- BANNER SECTION END --> <!-- DETAIL SECTION BEGIN --> <section class="detail-sec"> <div class="container-fluid"> <div class="row"> @forelse ($practices as $practice) @php $practiceSpecialities = \App\Models\PracticeSpeciality::getByPracticeIdToSpecialityIds($practice->id); @endphp {{-- @if ($practice->id == Auth::user()->practice_id) --}} @if (false) @elseif (count($practiceSpecialities) == 0) @else <div class="col-md-3 col-sm-6 col-12 pt-5"> <div class="main-detail-box {{ $practice->is_featured == 1 ? 'gold-status' : '' }}"> @if($practice->is_featured == 1) <div class="text-right gold"> <i class="fa fa-star"></i> </div> @endif <div class="detail-img-box"> <img src="{{ config('global.practices_upload') }}{{ $practice->profile_name }}" alt="image" class="img-fluid"> </div> <h4 class="detail-box-heading">{{ $practice->name }}</h4> <div class="detail-btns"> @if (count($practiceSpecialities) > 0) <a href="/practice/{{ $practice->id }}/refer-now" class="refer-btn">Refer Now</a> @endif <a href="javascript:;" class="more-info-btn other-info" data-id="{{ $practice->id }}">Other Info</a> <a href="/practice/{{ $practice->id }}" class="more-info-btn">More Info</a> </div> </div> </div> @endif @empty <h4 class="text-center"> No Practices Found </h4> @endforelse </div> @if (count($practices) > 12) {{-- <a href="javascriptvoid:(0)" class="load-more-link">Load More...</a> --}} @endif </div> </section> <!-- DETAIL SECTION END --> <div id="other-info" class="modal detail-btns" tabindex="-1" role="dialog"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title">Other Information</h5> {{-- <button type="button" class="close" data-dismiss="modal" aria-label="Close">--}} {{-- <span aria-hidden="true">×</span>--}} {{-- </button>--}} </div> <div class="modal-body append-other-info"></div> <div class="modal-footer"> <button type="button" class="btn btn-default refer-btn" data-dismiss="modal">Close</button> </div> </div> </div> </div> @endsection @section('script') <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDCNf8ukepsehUSLC22cK61AHUIkoXJibI&libraries=places"></script> <script> $('.other-info').on('click', function (){ var id = $(this).data('id'); $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ url: "{{ route('practices.info') }}", method: 'post', data: {id:id}, success: function (result) { if (result.status == true) { $('.append-other-info').empty().append(result.data.other_info); $('#other-info').modal('show'); } } }); }) $(document).ready(function () { $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') } }); $.ajax({ url: "{{ route('practices.treatments') }}", method: 'post', data: { treatments: $('#treatments option:selected').val(), }, success: function (result) { console.log(result.data); $('#practice_id').empty(); $('#practice_id').append(result.data); } }); $('#treatments').on('change', function (e) { var treatments = $('#treatments').val(); $.ajax({ url: "{{ route('practices.treatments') }}", method: 'post', data: { treatments: treatments, }, success: function (result) { console.log(result.data); $('#practice_id').empty(); $('#practice_id').append(result.data); } }); }); }); // $(document).ready(function() { // navigator.permissions.query({ // name: 'geolocation' // }) // .then(() => { // alert('allowed') // }).catch(() => { // alert('not allowed') // $('#nearist').removeClass('nearistActice'); // }) // }) $('#treatments').select2({ placeholder: { id: '', text: 'Please Select Speciality' }, allowClear: true }).trigger('change'); $('#practice_id').select2({ placeholder: { id: '', text: 'Please Select Practice' }, allowClear: true }).trigger('change'); var map = null; var marker; function showlocation() { if (navigator.geolocation) { $('#nearist').addClass('nearistActice'); $('#nearist').removeClass('nearistDeactice'); $('#nearist').attr('readonly', true); $('#nearist').attr('value', 'Sort by closest practice to me'); navigator.geolocation.getCurrentPosition(callback, error); } else { console.warn("geolocation IS NOT available"); } } function error(err) { console.warn('ERROR(' + err.code + '): ' + err.message); $('#nearist').removeClass('nearistActice'); $('#nearist').addClass('nearistDeactice'); $('#nearist').attr('readonly', false); $('#nearist').attr('value', 'Not Sort by closest practice'); }; if ("geolocation" in navigator) { $('.shadowactive').addClass('shadowactive'); navigator.geolocation.getCurrentPosition(callback, error); } else { $('.shadowactive').removeClass('shadowactive'); alert('Must have to allow location'); console.warn("geolocation IS NOT available"); } function callback(position) { $('#nearist').addClass('nearistActice'); console.log(position); var lat = position.coords.latitude; var lon = position.coords.longitude; document.getElementById('lat').value = lat; document.getElementById('long').value = lon; var latLong = new google.maps.LatLng(lat, lon); map.setZoom(16); map.setCenter(latLong); } </script> @endsection @endif
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка