shell bypass 403
@extends('web.layout.default')
@section('page_title')
| {{ trans('labels.my_profile') }}
@endsection
@section('content')
<div class="breadcrumb-sec">
<div class="container">
<div class="breadcrumb-sec-content">
<nav class="text-dark d-flex breadcrumb-divider" aria-label="breadcrumb">
<ol class="breadcrumb">
<li
class="breadcrumb-item {{ session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : '' }}">
<a class="text-dark" href="{{ route('home') }}">{{ trans('labels.home') }}</a>
</li>
<li class="breadcrumb-item {{ session()->get('direction') == '2' ? 'breadcrumb-item-rtl ps-0' : '' }} text-primary fw-bold active"
aria-current="page">{{ trans('labels.my_profile') }}</li>
</ol>
</nav>
</div>
</div>
</div>
<section class="my-5">
<div class="container">
<div class="row">
<div class="col-lg-3">
@include('web.layout.usersidebar')
</div>
<div class="col-lg-9">
<div class="user-content-wrapper card h-100">
<p class="title pb-2 color-changer border-bottom">{{ trans('labels.my_profile') }}</p>
<form action="{{ URL::to('/profile/update') }}" method="POST" enctype="multipart/form-data">
@csrf
<div class="mb-3 align-items-center">
<div class="col-md-2 col-sm-3 col-4 mb-3">
<div class="avatar-upload mx-md-0 mx-auto">
<div class="avatar-edit {{ session()->get('direction') == '2' ? 'rtl' : '' }}">
<input type='file' name="profile_image" id="imageupload"
accept=".png, .jpg, .jpeg" />
<label for="imageupload">
<i class="fa-solid fa-pen"></i>
</label>
</div>
<div class="avatar-preview">
<div id="imagepreview">
<img src="{{ helper::image_path(Auth::user()->profile_image) }}"
alt="" id="imgupload">
</div>
</div>
</div>
@error('profile_image')
<small class="text-danger">{{ $message }}</small>
@enderror
</div>
<div class="col-md-12">
<div class="row g-3">
<div class="col-md-4">
<div class="form-group mb-3">
<label for=""
class="form-label mb-1">{{ trans('labels.full_name') }}</label>
<input type="text" class="form-control" name="name"
placeholder="{{ trans('labels.full_name') }}"
value="{{ Auth::user()->name }}" required>
@error('name')
<small class="text-danger">{{ $message }}</small>
@enderror
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for=""
class="form-label mb-1">{{ trans('labels.email') }}</label>
<input type="email" class="form-control" name="email"
placeholder="{{ trans('labels.email') }}"
value="{{ Auth::user()->email }}" disabled>
</div>
</div>
<div class="col-md-4">
<div class="form-group mb-3">
<label for=""
class="form-label mb-1">{{ trans('labels.mobile') }}</label>
<input type="text" class="form-control" name="mobile"
placeholder="{{ trans('labels.mobile') }}"
value="{{ Auth::user()->mobile }}" disabled>
</div>
</div>
</div>
</div>
<div
class="col-md-12 {{ session()->get('direction') == '2' ? 'text-start' : 'text-end ' }}">
<button class="btn btn-primary px-4 mb-0 {{ session()->get('direction') == '2' }}"
@if (env('Environment') == 'sendbox') type="button" onclick="myFunction()" @else type="submit" @endif>{{ trans('labels.save') }}</button>
</div>
</div>
</form>
<div class="border-bottom my-3"></div>
<p class="title color-changer">{{ trans('labels.notification_settings') }}</p>
<div class="row">
<div class="col-md-12">
<ul class="list-group list-group-flush">
<li class="list-group-item px-0 d-flex justify-content-between align-items-center">
<h5 class="mb-0 color-changer">
@if (@helper::checkaddons('otp'))
{{ trans('labels.mobile') }}
@else
{{ trans('labels.email') }}
@endif
</h5>
<span>
<input type="checkbox" class="checkbox-switch" id="send_email-switch"
data-url="{{ URL::to('/profile/send-email-status') }}" name="send_email"
{{ Auth::user()->is_mail == 1 ? 'checked' : '' }}>
<label for="send_email-switch" class="switch">
<span class="switch__circle"><span
class="switch__circle-inner"></span></span>
<span
class=" {{ session()->get('direction') == '2' ? 'switch__right pe-2' : 'switch__left ps-2' }}">{{ trans('labels.off') }}</span>
<span
class=" {{ session()->get('direction') == '2' ? 'switch__left ps-2' : 'switch__right pe-2' }}">{{ trans('labels.on') }}</span>
</label>
</span>
</li>
<li class="list-group-item px-0">
<small class="color-changer">
@if (@helper::checkaddons('otp'))
{{ trans('labels.keep_on_recieve_mobile') }}
@else
{{ trans('labels.keep_on_recieve_email') }}
@endif
</small>
</li>
</ul>
</div>
</div>
<div class="border-bottom my-3"></div>
{{-- change password --}}
<div>
<p class="title pb-2 border-bottom color-changer">{{ trans('labels.change_password') }}</p>
<form action="{{ URL::to('/changepassword') }}" method="POST">
@csrf
<div class="row g-md-3 g-2">
<div class="form-group col-md-4">
<label for=""
class="form-label mb-1">{{ trans('labels.old_password') }}</label>
<input type="password" class="form-control" name="old_password"
placeholder="{{ trans('labels.old_password') }}" required>
</div>
<div class="form-group col-md-4">
<label for=""
class="form-label mb-1">{{ trans('labels.new_password') }}</label>
<input type="password" class="form-control" name="new_password"
placeholder="{{ trans('labels.new_password') }}" required>
</div>
<div class="form-group col-md-4">
<label for=""
class="form-label mb-1">{{ trans('labels.confirm_password') }}</label>
<input type="password" class="form-control" name="confirm_password"
placeholder="{{ trans('labels.confirm_password') }}" required>
</div>
<div
class="form-group mt-3 {{ session()->get('direction') == 2 ? 'text-start' : 'text-end' }}">
<button
@if (env('Environment') == 'sendbox') type="button" onclick="myFunction()" @else type="submit" @endif
class="btn btn-primary px-4">{{ trans('labels.submit') }}</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
@endsection
@section('scripts')
<script src="{{ url(env('ASSETSPATHURL') . 'web-assets/js/custom/profile.js') }}"></script>
@endsection