Файловый менеджер - Редактировать - /home/clickysoft/public_html/rgr.clickysoft.net/resources/views/profile.blade.php
Назад
@extends('layouts.app') @section('title') Profile @endsection @section('content') <style> #firstNameId2, #lastNameId2, #phoneId2, #passwordId2, #addressId2, #cityId2, #countryId2, #postalCodeId2 { display: none; } </style> <!-- BANNER SECTION BEGIN --> <section class="search-banner search-referral-banner"> <div class="container-fluid"> <div class="row"> <div class="col-md-12 col-sm-12 col-12"> </div> </div> </div> </section> <!-- BANNER SECTION END --> <!-- PRACTICE PROFILE SECTION BEGIN --> <section class="practice-profile-sec"> <div class="container-fluid"> <div class="row"> <div class="col-md-3 col-sm-6 col-12"> <div class="account-setting"> <h4 class="account-setting-heading">Account Settings</h4> <div class="profile-pic-setting"> <h6 class="profile-pic-heading">Change profile picture</h6> <div class="avatar-upload"> <div class="avatar-edit"> <input type='file' id="imageUpload" accept=".png, .jpg, .jpeg" /> <label for="imageUpload"></label> </div> <div class="avatar-preview"> <div id="imagePreview" style="background-image: url(/public/profiles/users/{{ $userDetail->profile_name }});"> </div> </div> </div> </div> </div> </div> <div class="col-md-9 col-sm-9 col-12"> </div> </div> <div class="row"> <div class="col-md-12 col-sm-12 col-12"> <div class="main-table-content"> <h4 class="table-content-heading" id="view">General Account Settings</h4> @include('layouts.flash-message') <div class="table-responsive"> <div class="row float-right mb-4 mr-0"> <div class="col-lg-12 col-md-12 col-sm-12 col-12"> <button class="btn btn-secondary" onclick="editOptions()" id="edit">Edit</button> </div> </div> <table class="table"> <tbody> <form method="POST" action="/profile/update"> @csrf <input type="hidden" name="first_name" id="first_name" value=""> <tr> <td>Email</td> <td class="table-text-center" id="emailTd"> <strong>{{ Auth::user()->email }}</strong> </td> </tr> <tr> <td>Job Tile</td> <td class="table-text-center" id="titleTd"> <strong>{{ $jobTitle->title }}</strong> </td> </tr> <tr class="table-border-bottom"> <td>Change Password</td> <td class="table-text-center"> <strong id="passwordId1">*******</strong> <p id="passwordId2" class="text-left fs18">Leave blank fields if you do not want to change your password<br> <input type="password" class="form-control" id="password2" name="password" placeholder="Password" value=""><br><input type="password" name="password_confirmation" class="form-control" id="password_confirmation2" placeholder="Confirm Password" value=""> </p> </td> </tr> <tr> <td width="35%">First Name</td> <td width="35%" class="table-text-center"> <strong id="firstNameId1">{{ Auth::user()->first_name }} </strong> <input id="firstNameId2" type="text" class="form-control" placeholder="Enter First Name" name="first_name" value="{{ Auth::user()->first_name }}"> </td> </tr> <tr> <td width="35%">Last Name</td> <td width="35%" class="table-text-center"> <strong id="lastNameId1">{{ Auth::user()->last_name }} </strong> <input id="lastNameId2" type="text" class="form-control" placeholder="Enter Last Name" name="last_name" value="{{ Auth::user()->last_name }}"> </td> </tr> <tr> <td>Phone</td> <td class="table-text-center"> <strong id="phoneId1">{{ $userDetail->phone }}</strong> <input id="phoneId2" type="number" class="form-control" placeholder="Enter Phone" name="phone" value="{{ $userDetail->phone }}"> </td> </tr> <tr> <td>Address</td> <td class="table-text-center"> <strong id="addressId1">{{ $userDetail->address }}</strong><br> <strong id="address2Id1">{{ $userDetail->address_2 }}</strong> <p id="addressId2"> <input type="text" class="form-control" placeholder="Enter Address" name="address" value="{{ $userDetail->address }}"><br> <input type="text" class="form-control" placeholder="Enter Address Line 2" name="address_2" value="{{ $userDetail->address2 }}"> </p> </td> </tr> <tr> <td>City</td> <td class="table-text-center"> <strong id="cityId1">{{ $userDetail->city }}</strong> <input id="cityId2" type="text" class="form-control" placeholder="Enter City" name="city" value="{{ $userDetail->city }}"> </td> </tr> <tr> <td>Country</td> <td class="table-text-center"> <strong id="countryId1">{{ $userDetail->country }}</strong> <input id="countryId2" type="text" class="form-control" placeholder="Enter Country" name="country" value="{{ $userDetail->country }}"> </td> </tr> <tr> <td>Postal Code</td> <td class="table-text-center"> <strong id="postalCodeId1">{{ $userDetail->zip_code }}</strong> <input id="postalCodeId2" type="text" class="form-control" placeholder="Enter Postal Code" name="zip_code" value="{{ $userDetail->zip_code }}"> </td> </tr> <tr class="d-none" id="submitBtn"> <td></td> <td class="text-end"> <button class="btn btn-success">Update</button> </td> </tr> </form> </tbody> </table> </div> </div> <div class="main-table-content"> <h4 class="table-content-heading">Practice Information</h4> <div class="table-responsive"> <table class="table"> <tbody> <tr> <td width="35%">Name</td> <td width="35%" class="table-text-center"><strong>{{ $practice->name }}</strong> </td> </tr> <tr> <td>Timing</td> <td class="table-text-center"><strong> @foreach ($openingHours as $openHour) @if ($openHour->opening_hour != null) {{ $openHour->day }}: {{ $openHour->opening_hour }}-{{ $openHour->closing_hour }}<br> @endif @endforeach </strong></td> </tr> <tr> <td>Specialities</td> <td class="table-text-center"><strong> @foreach ($practiceSpecialities as $practiceSpeciality) <span>{{ $practiceSpeciality->title }} </span> @endforeach </strong></td> </tr> {{-- <tr> <td>Description</td> <td class="table-text-center"> <strong>{{ substr($practice->description, 0, 50) }}</strong> </td> </tr> --}} <tr class="table-border-bottom"> <td>Address</td> <td class="table-text-center"> <strong>{{ $practice->address }}</strong> </td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </section> <!-- PRACTICE PROFILE SECTION END --> @endsection @section('script') <script> function editOptions() { if ($('#firstNameId2').is(":visible")) { $('#firstNameId2').hide(); $('#firstNameId1').show(); $('#lastNameId2').hide(); $('#lastNameId1').show(); $('#phoneId2').hide(); $('#phoneId1').show(); $('#passwordId2').hide(); $('#passwordId1').show(); $('#addressId2').hide(); $('#addressId1').show(); $('#address2Id1').show(); $('#cityId2').hide(); $('#cityId1').show(); $('#countryId2').hide(); $('#countryId1').show(); $('#postalCodeId2').hide(); $('#postalCodeId1').show(); $('#submitBtn').addClass('d-none'); } else { $('#firstNameId2').show(); $('#firstNameId1').hide(); $('#lastNameId2').show(); $('#lastNameId1').hide(); $('#phoneId2').show(); $('#phoneId1').hide(); $('#passwordId2').show(); $('#passwordId1').hide(); $('#addressId2').show(); $('#addressId1').hide(); $('#address2Id1').hide(); $('#cityId2').show(); $('#cityId1').hide(); $('#countryId2').show(); $('#countryId1').hide(); $('#postalCodeId2').show(); $('#postalCodeId1').hide(); $('#submitBtn').removeClass('d-none'); } } function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function(e) { var name = document.getElementById("imageUpload").files[0].name; var form_data = new FormData(); var ext = name.split('.').pop().toLowerCase(); var token = '{{ csrf_token() }}'; if (jQuery.inArray(ext, ['gif', 'png', 'jpg', 'jpeg']) == -1) { alert("Invalid Image File"); } var oFReader = new FileReader(); oFReader.readAsDataURL(document.getElementById("imageUpload").files[0]); var f = document.getElementById("imageUpload").files[0]; var fsize = f.size || f.fileSize; if (fsize > 2000000) { alert("Image File Size is very big"); } else { form_data.append("file", document.getElementById('imageUpload').files[0]); form_data.append("_token", token); $.ajax({ url: "/profile/upload", method: "POST", data: form_data, contentType: false, cache: false, processData: false, beforeSend: function() { $('#uploaded_image').html( "<label class='text-success'>Image Uploading...</label>"); }, success: function(data) { $('#imagePreview').css('background-image', 'url(' + data + ')'); $('#imagePreview').hide(); $('#imagePreview').fadeIn(2000); $('#profileImage').attr('src', data); $('#profileImage').fadeIn(2000); } }); } } reader.readAsDataURL(input.files[0]); } } $("#imageUpload").change(function() { readURL(this); }); </script> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.1.29 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка