PATH:
home
/
rwabteecom
/
project_11
/
resources
/
views
/
dashboard
/
pages
/
Editing: profile.blade.php
@extends('dashboard.layouts.app') @section('body') <form id="photo-upload-form" class="d-none"> <input type="file" accept="image/png, image/jpeg" name="profileImage" /> </form> <div class="profile-page py-4"> <div class="container text-center col-12 col-lg-10 col-xl-8 mx-auto"> <div class="section-con mb-4 text-start"> <div class="p-4 d-flex justify-content-center justify-content-md-start align-items-center flex-wrap flex-column flex-md-row update-profile-img"> <div class="mx-auto mx-md-0 mb-3 me-md-4 mb-md-0 text-center profileimg-con"> <img src="{{ $user->profileImage }}" class="img-fluid" id="userprofileImage" alt="profile"> </div> <div class="text-center text-md-start"> <h5 class="mb-1">{{ $user->name }}</h5> <p>{{ $user->email }}</p> <div class="d-flex align-items-center flex-wrap"> <button class="form-label main-btn mb-0 me-3 px-4" id="profile-img-select"> {{ __('Select an image') }} </button> </div> </div> </div> <form id="update-profile-data" class="p-4"> @csrf <div class="mb-4"> <label class="input-label"> {{ __('User Name') }} </label> <input class="px-3 formInput" type="text" value="{{ $user->name }}" name="name" placeholder=" {{ __('User Name') }}" required> </div> <div class="my-4"> <label class="input-label"> {{ __('User Email') }} </label> <input class="px-3 formInput" type="email" value="{{ $user->email }}" name="email" placeholder="{{ __('User Email') }}"> </div> <button class="main-btn profile-btn px-4"> {{ __('Update Info.') }} </button> </form> </div> <form id="update-profile-password" class="py-4 px-3 px-sm-4 section-con mb-4 text-start"> @csrf <h5 class="section-title mb-4">{{ __('Update Password') }}</h5> <div class="my-4"> <label class="input-label"> {{ __('Current password') }} </label> <input class="px-3 formInput" type="password" name="current_password" placeholder="{{ __('Current password') }}" required> </div> <div class="my-4"> <label class="input-label"> {{ __('New Password') }} </label> <input class="px-3 formInput" type="password" name="password" placeholder=" {{ __('New Password') }}" required> </div> <div class="my-4"> <label class="input-label"> {{ __('New Password Confirmation') }} </label> <input class="px-3 formInput" type="password" name="password_confirmation" placeholder="{{ __('New Password Confirmation') }}" required> </div> <button class="main-btn profile-btn px-4"> {{ __('Update Info.') }} </button> </form> <div class="py-4 px-3 px-sm-4 section-con mb-4 text-start subscription-con"> <div class="section-title mb-4 d-flex align-items-center justify-content-between flex-wrap"> <h5 class="mb-2">{{ __('Your Subscription') }}</h5> <a href="{{route('plan')}}" class="plan-btn mb-2">{{ __('Change Plan') }}</a> </div> @foreach (auth()->user()->plans as $plan) <div class="subscription-box p-4 mt-2"> <h4>{{ $plan->title }}</h4> <h5 class="mb-0">{{ __('Expires on:') }} <span>{{ Carbon\Carbon::parse($plan->plan_end_at)->format('d M,Y') }}</span></h5> </div> @endforeach </div> </div> </div> @endsection @section('js') @include('dashboard.partials.profile-scripts') @if (Session::get('error')) <script> Toastify({ text: "{{ Session::get('error') }}", duration: 3000, close: true, className: "add-success", style: { background: "#dc3545", } }).showToast(); </script> @endif @if (Session::get('success')) <script> Toastify({ text: "{{ Session::get('success') }}", duration: 3000, close: true, className: "add-success", style: { background: "#28a745", } }).showToast(); </script> @endif @endsection
SAVE
CANCEL