PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
front
/
music
@extends('front.layouts.master') @section('title','Music Dashboard') @section('content') {{-- @php dd(auth()->user()->subscription('main')->onGracePeriod()); @endphp --}} <div class="header__banner__main header__bnner__full__width dashboard__page"> <div class="header__banner___overlay"></div> <div class="image__box"><img src="{{ asset('front_assets/images/kong-skull-island-movie-fan-art.jpg') }}" alt="" /></div> <div class="banner__content"> <div class="container"> <div class="banner__container__inner"> <h1>Dashboard</h1> </div> </div> </div> </div> <div class="body__container__wrapp body__container__wrapp__inner"> <div class="container-fluid"> <div class="contact__wrapp"> <div class="row justify-content-center"> <div class="col-md-12"> <div class="card"> <div class="card-header">Dashboard</div> <div class="card-body"> <div class="d-flex align-items-start"> <div class="nav flex-column nav-pills me-3 myTab" id="v-pills-tab" role="tablist" aria-orientation="vertical"> <button class="nav-link active" id="v-pills-home-tab" data-bs-toggle="pill" data-bs-target="#v-pills-home" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true">Dashboard</button> <button class="nav-link" id="v-pills-profile-tab" data-bs-toggle="pill" data-bs-target="#v-pills-profile" type="button" role="tab" aria-controls="v-pills-profile" aria-selected="false">Profile Management</button> <button class="nav-link" id="v-pills-logout-tab" data-bs-toggle="pill" data-bs-target="#v-pills-logout" type="button" role="tab" aria-controls="v-pills-logout" aria-selected="false"> <a class="" href="{{ route('logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();"> {{ __('Logout') }} </a> <form id="logout-form" action="{{ route('logout') }}" method="POST" class="d-none"> @csrf </form> </button> </div> <div class="tab-content" id="v-pills-tabContent"> <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab"> Welcome to dashboard </div> <div class="tab-pane fade table-responsive" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab"> <a href="{{ route('music.edit.profile') }}" class="btn btn-primary text-right">Edit</a> <table class="table table-success table-striped"> <tbody> <tr> <th>First Name</th> <td>{{ auth()->user()->first_name }}</td> </tr> <tr> <th>Last Name</th> <td>{{ auth()->user()->last_name }}</td> </tr> <tr> <th>Email</th> <td>{{ auth()->user()->email }}</td> </tr> <tr> <th>Phone</th> <td>{{ auth()->user()->phone_number }}</td> </tr> <tr> <th>Profile Image</th> <td><img src="{{ !empty(auth()->user()->profile_picture) ? asset('storage/profiles/'.auth()->user()->profile_picture) : asset('front_assets/images/default-user-image.png') }}" alt="" style="width: 100px;"></td> </tr> <tr> <th>Password Reset</th> <td><a href="{{ route('music.edit.password') }}" class="btn btn-primary">Edit Password</a></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> </div> </div> @endsection @push('frontend-scripts') <script src="https://js.stripe.com/v3/"></script> <script src="https://unpkg.com/axios/dist/axios.min.js"></script> <script> (function($){ $(document).ready(function(){ $('#card-element').length && $('#card-holder-name').length && $('#card-button').length && ( window.addEventListener('load', function() { const stripe = Stripe('{{env('STRIPE_KEY')}}'); const elements = stripe.elements(); const cardElement = elements.create('card'); cardElement.mount('#card-element'); const cardHolderName = document.getElementById('card-holder-name'); const cardButton = document.getElementById('card-button'); const clientSecret = cardButton.dataset.secret; const plan = document.getElementById('plan').value; cardButton.addEventListener('click', async (e) => { cardButton.disabled = true; $("#Loader").removeClass('d-none'); const { setupIntent, error } = await stripe.handleCardSetup( clientSecret, cardElement, { payment_method_data: { billing_details: { name: cardHolderName.value } } } ); if (error) { iziToast.error({ title: 'Error', message: error.message, position:'topRight' }); cardButton.disabled = false; $("#Loader").addClass('d-none'); } else { // The card has been verified successfully... console.log('handling success', setupIntent.payment_method); axios.post('{{ route('registrationPayment') }}',{ payment_method: setupIntent.payment_method, plan : plan }).then((data)=>{ location.replace(data.data.success_url) }); } }); }) ) $('button[data-bs-toggle="pill"]').on('show.bs.tab', function(e) { localStorage.setItem('activeTab', $(e.target).attr('data-bs-target')); }); var activeTab = localStorage.getItem('activeTab'); //alert(activeTab) if(activeTab){ $('.myTab button[data-bs-target="' + activeTab + '"]').tab('show'); } }) })(jQuery) </script> @endpush
[+]
profile
[+]
..
[+]
music
[-] dashboard.blade.php
[edit]