PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
front
@extends('front.layouts.master') @section('title','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="image__box"><img src="{{ asset('front_assets/images/image-poster-2.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-3.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-4.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-5.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-6.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-7.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-8.jpg') }}" alt="" /></div> <div class="image__box"><img src="{{ asset('front_assets/images/image-poster-9.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> @if(auth()->user()->is_one_time == '0' || auth()->user()->is_one_time == '3' || auth()->user()->is_one_time == '1' ) <button class="nav-link" id="v-pills-watchlist-tab" data-bs-toggle="pill" data-bs-target="#v-pills-watchlist" type="button" role="tab" aria-controls="v-pills-watchlist" aria-selected="false"> Watchlist </button> <button class="nav-link" id="v-pills-ratings-tab" data-bs-toggle="pill" data-bs-target="#v-pills-ratings" type="button" role="tab" aria-controls="v-pills-ratings" aria-selected="false"> Your Ratings </button> @endif @if (auth()->user() && auth()->user()->is_one_time == '4' ) <button class="nav-link" id="v-pills-upload-tab" data-bs-toggle="pill" data-bs-target="#v-pills-upload" type="button" role="tab" aria-controls="v-pills-watchlist" aria-selected="false"> Music List</button> @endif @if(auth()->user()->is_one_time == '0' || auth()->user()->is_one_time == '3' || auth()->user()->is_one_time == '2' || auth()->user()->is_one_time == '4' ) <button class="nav-link" id="v-pills-messages-tab" data-bs-toggle="pill" data-bs-target="#v-pills-messages" type="button" role="tab" aria-controls="v-pills-messages" aria-selected="false"> Subscription Plan </button> <button class="nav-link" id="v-pills-invoice-tab" data-bs-toggle="pill" data-bs-target="#v-pills-invoice" type="button" role="tab" aria-controls="v-pills-invoice" aria-selected="false"> Invoice </button> @if (auth()->user() && (auth()->user()->is_one_time !== 4 && auth()->user()->is_one_time !== 2)) <button class="nav-link" id="v-pills-share-referral-tab" data-bs-toggle="pill" data-bs-target="#v-pills-share-referral" type="button" role="tab" aria-controls="v-pills-share-referral" aria-selected="false"> Share Referral </button> @endif @if ($referral_payments_recived->count() > 0) <button class="nav-link" id="v-pills-referral-tab" data-bs-toggle="pill" data-bs-target="#v-pills-referral" type="button" role="tab" aria-controls="v-pills-referral" aria-selected="false"> Referral Bonus </button> @endif @endif @if (auth()->user() && auth()->user()->IsOneTime()) <button class="nav-link" id="v-pills-movie-tab" data-bs-toggle="pill" data-bs-target="#v-pills-movie" type="button" role="tab" aria-controls="v-pills-movie" aria-selected="false"> Movie </button> <button class="nav-link" id="v-pills-upgrade-subscription-tab" data-bs-toggle="pill" data-bs-target="#v-pills-upgrade-subscription" type="button" role="tab" aria-controls="v-pills-upgrade-subscription" aria-selected="false"> Upgrade Subscription </button> @endif @if (auth()->user() && (!empty(auth()->user()->payments->contains('user_id', auth()->id())) || auth()->user()->subscription('main') ) && (auth()->user()->is_one_time !== 4 && auth()->user()->is_one_time !== 2)) <button class="nav-link" id="v-pills-chat-tab" data-bs-toggle="pill" data-bs-target="#v-pills-chat" type="button" role="tab" aria-controls="v-pills-chat" aria-selected="false"> Chat </button> @endif <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('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('edit.password') }}" class="btn btn-primary">Edit Password</a></td> </tr> </tbody> </table> </div> <div class="tab-pane fade table-responsive" id="v-pills-watchlist" role="tabpanel" aria-labelledby="v-pills-watchlist-tab"> <table class="table table-success table-striped"> <thead> <tr> <th scope="col"></th> <th scope="col">Movie Name</th> <th scope="col">AVG.Rating</th> <th scope="col">Action</th> </tr> </thead> @if (auth()->user()->movies->count() > 0) @foreach (auth()->user()->movies as $movie) <tr> <td><a href="{{ route('movie',$movie->slug) }}"><img src="{{ asset('storage/movies/'.$movie->cover_image) }}" alt="" style="width: 50px;"></a></td> <td><a href="{{ route('movie',$movie->slug) }}">{{ $movie->title }}</a> </td> @php $movies_reviews = App\Models\Review::where('movie_id',$movie->id)->where('status','active')->orderByDesc('created_at')->get(); @endphp <td>{{ $movies_reviews->count() > 0 ? number_format($movie->reviews->avg('rating'),1) : '' }}</td> <td><a href="{{ route('remove-watch-list',$movie->id) }}" onclick="return confirm('Are you sure?')">Remove</a></td> </tr> @endforeach @else <td colspan="5" class="text-center">No movie exists!!</td> @endif </table> </div> <div class="tab-pane fade table-responsive" id="v-pills-upload" role="tabpanel" aria-labelledby="v-pills-upload-tab"> <a href="{{ route('add.music') }}" class="btn btn-primary text-right">Upload New Music</a> <table class="table table-success table-striped"> <thead> <tr> <th scope="col">Music Name</th> <th scope="col">Music Category</th> <th scope="col">Music File</th> <th scope="col">Uploaded Date</th> <th scope="col">Approval Status</th> </tr> </thead> @if (auth()->user() && auth()->user()->is_one_time == '4' ) @foreach ($musics as $music) <tr> <td>{{ $music->title }}</td> <td>{{ $music->music_mania->title }}</td> <td><a href="{{ !empty($music->upload_music) ? asset('storage/music/upload_music/'.$music->upload_music) : '' }}" target="_blank" class="d-block mb-4 h-50"> <img src="{{ asset('admin_assets/images/audio.png') }}" height="50" width="50" alt="Music Video" class="img-fluid img-thumbnail hei-150"></a> </td> <td>{{ $music->created_at }}</td> <td>{{ $music->status }}</td> {{-- <td><a href="{{ $invoice->invoice_pdf }}" download="">Download</a></td> --}} </tr> @endforeach @endif </table> {{ $musics->links() }} </div> <div class="tab-pane fade table-responsive" id="v-pills-ratings" role="tabpanel" aria-labelledby="v-pills-ratings-tab"> <table class="table table-success table-striped"> <thead> <tr> <th scope="col"></th> <th scope="col">Movie Name</th> <th scope="col">Comment </th> <th scope="col">Rating</th> <th scope="col">Status</th> <th scope="col">Action</th> </tr> </thead> @if (auth()->user()->reviews->count() > 0) @foreach (auth()->user()->reviews as $review) <tr> <td><a href="{{ route('movie',$review->movie->slug) }}"><img src="{{ asset('storage/movies/'.$review->movie->cover_image) }}" alt="" style="width: 50px;"></a></td> <td><a href="{{ route('movie',$review->movie->slug) }}">{{ $review->movie->title }}</a></td> <td>{{ Str::limit($review->description, 50) }}</td> <td>{{ $review->rating }}</td> <td>{{ ($review->status == 'active') ? 'Active' : 'Inactive' }}</td> <td> <a href="javascript:void(0)" data-bs-toggle="modal" data-bs-target="#RatingModal_{{ $review->id }}">Edit</a> <a href="{{ route('remove-review',$review->id) }}" onclick="return confirm('Are you sure?')">Remove</a> <!-- Modal --> <div class="modal fade" id="RatingModal_{{ $review->id }}" tabindex="-1" role="dialog" aria-labelledby="RatingModalLabel_{{ $review->id }}" aria-hidden="true"> <div class="modal-dialog modal__dialog__review"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="RatingModalLabel_">Edit Your Review</h5> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> </div> <form action="{{ route('edit-review',$review->id) }}" method="POST"> {{ csrf_field() }} <div class="modal-body modal__body__review"> <div class="form-group form__group"> <label for=""> Rating </label> <input type="text" class="form-control form__control" name="rating" value="{{ $review->rating ?? '' }}"> </div> <div class="form-group form__group"> <label for=""> Comment </label> <textarea class="form-control form__control" name="description">{{ $review->description ?? '' }}</textarea> </div> </div> <div class="modal-footer"> <button type="submit" class="btn btn-primary">Update</button> </div> </form> </div> </div> </div> </td> </tr> @endforeach @else <td colspan="5" class="text-center">No movie exists!!</td> @endif </table> </div> @if(auth()->user()->subscription('main')) <div class="tab-pane fade table-responsive" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab"> <table class="table table-success table-striped"> <tbody> <tr> <th>Subcription Plan Name:</th> <td>@if (auth()->user()->is_one_time=='0'){{ 'Movies Unlimited' }} @elseif(auth()->user()->is_one_time=='2'){{ 'Sports Unlimited' }} @elseif(auth()->user()->is_one_time=='3'){{ 'Movies & Sports Unlimited' }} @elseif(auth()->user()->is_one_time=='4'){{ 'Music' }} @else{{ '' }} @endif </td> </tr> <tr> <th>Subscription Amount</th> <td> ${{ number_format($plan_price,2) }} </td> </tr> <tr> <th>Subscription Tenure </th> <td>{{ $autoRenewDate }}</td> </tr> <tr> <th></th> <td> @if (auth()->user()->subscription('main')->onGracePeriod()) @else <p>Click the button below to cancel your subscription. Your account will keep its current features until the end of the current billing cycle.</p> <form action="{{ route('cancelSubscription') }}" method="POST"> @csrf <button type="submit" class="btn btn-primary" onclick="return confirm('Are you sure?')">Cancel</button> </form> @endif </td> </tr> </tbody> </table> </div> <div class="tab-pane fade table-responsive" id="v-pills-invoice" role="tabpanel" aria-labelledby="v-pills-invoice-tab"> <table class="table table-success table-striped"> <thead> <tr> <th scope="col">Invoice Number</th> <th scope="col">Transaction Amount</th> <th scope="col">Transaction Date</th> <th scope="col">Action</th> </tr> </thead> @foreach ($invoices as $invoice) <tr> <td>{{ $invoice->number }}</td> <td>{{ $invoice->total() }}</td> <td>{{ $invoice->date()->toFormattedDateString() }}</td> {{-- <td><a href="{{ $invoice->invoice_pdf }}" download="">Download</a></td> --}} <td><a href="{{ $invoice->hosted_invoice_url }}" target="_blank" download="">Download</a></td> </tr> @endforeach </table> </div> {{-- for share referral --}} <div class="tab-pane fade" id="v-pills-share-referral" role="tabpanel" aria-labelledby="v-pills-share-referral-tab"> <div class="col-md-12"> @if (!empty(auth()->user()->bankDetail->account_no) && !empty(auth()->user()->bankDetail->route_no) && !empty(auth()->user()->bankDetail->account_holder_name)) <form action="{{ route('share-refer.send_mail') }}" method="POST" accept-charset="utf-8"> {{ csrf_field() }} <label for="share_email">Email To Share Your Refer : </label> <div class="form__group"> <input id="share_email" name="share_email" type="text" class="form-control" placeholder="Enter Email"> <button type="submit" class="btn btn-primary mt-2">Submit</button> </div> </form> @else <p>Please add your acccount no, route no for share your refer : </p> <a href="{{ route('edit.profile') }}" class="btn btn-primary text-right">Edit</a> @endif </div> </div> @if ($referral_payments_recived->count() > 0) <div class="tab-pane fade table-responsive" id="v-pills-referral" role="tabpanel" aria-labelledby="v-pills-referral-tab"> <table class="table table-success table-striped"> <thead> <tr> <th scope="col">Referred Name</th> <th scope="col">Referred Email</th> <th scope="col">Commission Price ($)</th> <th scope="col">Commission Percentage (%)</th> <th scope="col">Commission Transaction Id</th> <th scope="col">Date</th> </tr> </thead> @foreach ($referral_payments_recived as $item) <tr> <td>{{ $item->referralPaymentsGiver->first_name }} {{ $item->referralPaymentsGiver->last_name }} </td> <td> {{ $item->referralPaymentsGiver->email }}</td> <td>{{ number_format($item->commission_price,2) }} </td> <td>{{ $item->commission_percentage }} </td> <td>{{ $item->transaction_id }} </td> <td>{{ $item->created_at->format('m/d/Y'); }} </td> {{-- <td>{{ $invoice->total() }}</td> <td>{{ $invoice->date()->toFormattedDateString() }}</td> <td>{{ $invoice->date()->toFormattedDateString() }}</td> <td>{{ $invoice->date()->toFormattedDateString() }}</td> --}} </tr> @endforeach </table> </div> @endif @endif @if (auth()->user()) <div class="tab-pane fade table-responsive" id="v-pills-movie" role="tabpanel" aria-labelledby="v-pills-movie-tab"> <table class="table table-success table-striped"> <thead> <tr> <th scope="col">Movie Name</th> <th scope="col">Image</th> <th scope="col">Purches Date</th> <th scope="col">Expiry Date</th> <th scope="col">Action</th> </tr> </thead> @if (auth()->user()->payments->contains('user_id',auth()->id())) @foreach (auth()->user()->payments as $payment) <tr> <td><a href="{{ route('movie',$payment->movie->slug) }}">{{ $payment->movie->title }}</a></td> <td><a href="{{ route('movie',$payment->movie->slug) }}"><img src="{{ asset('storage/movies/'.$payment->movie->cover_image) }}" alt="" style="width: 50px;"></a></td> <td>{{ $payment->created_at }}</td> <td>{{ $payment->payment_validity }}</td> <td><a href="{{ route('movie',$payment->movie->slug) }}">View</a></td> </tr> @endforeach @else <td colspan="5" class="text-center">No movie exists!!</td> @endif </table> {{-- @foreach (auth()->user()->payments as $payment) <a href="{{ route('movie',$payment->movie->slug) }}"> <div class="col-md-12"> <h3>{{ $payment->movie->title }}</h3> <iframe src="{{ asset('storage/movies/trailer/'.$payment->movie->trailer) }}" frameborder="0"></iframe> <img src="{{ asset('storage/movies/'.$payment->movie->cover_image) }}" alt="" style="width: 50px;"> </div> </a> @endforeach --}} </div> <div class="tab-pane fade" id="v-pills-chat" role="tabpanel" aria-labelledby="v-pills-chat-tab"> <a href="{{ route('chat') }}" class="btn btn-primary">Open Chat Room</a> </div> <div class="tab-pane fade" id="v-pills-upgrade-subscription" role="tabpanel" aria-labelledby="v-pills-upgrade-subscription-tab"> <a href="{{ route('ShowUpgradeSubscriptionOption') }}" class="btn btn-primary">Upgrade Your Subscription</a> </div> @endif </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
[-] category-list.blade.php
[edit]
[+]
profile
[+]
..
[-] sport-details.blade.php
[edit]
[-] movie-details.blade.php
[edit]
[+]
layouts
[+]
music
[-] music-details.blade.php
[edit]
[+]
common
[-] home.blade.php
[edit]
[-] single-category-list.blade.php
[edit]
[+]
payment
[-] dashboard.blade.php
[edit]
[+]
pages
[+]
home_sections
[+]
chat
[-] movie-details-with-passcode.blade.php
[edit]
[-] sport-list.blade.php
[edit]