⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
public_html
/
resources
/
views
/
user
/
View File Name :
payment_log.blade.php
@extends('user.layout') @section('content') <div class="page-header"> <h4 class="page-title">{{ $keywords['Payment_Logs'] ?? __('Payment Logs') }}</h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="{{ route('user-dashboard') }}"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#">{{ $keywords['Payment_Logs'] ?? __('Payment Logs') }}</a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-4"> <div class="card-title d-inline-block">{{ $keywords['Payment_Logs'] ?? __('Payment Logs') }} </div> </div> <div class="col-lg-3"> </div> <div class="col-lg-4 offset-lg-1 mt-2 mt-lg-0"> <form action="{{ url()->current() }}" class="d-inline-block float-right"> <input class="form-control" type="text" name="search" placeholder="{{ $keywords['Search_by_Transaction_ID'] ?? __('Search by Transaction ID') }}" value="{{ request()->input('search') ? request()->input('search') : '' }}"> </form> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> @if (count($memberships) == 0) <h3 class="text-center"> {{ $keywords['NO_MEMBERSHIP_FOUND'] ?? __('NO MEMBERSHIP FOUND') }}</h3> @else <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"> {{ $keywords['Transaction_Id'] ?? __('Transaction Id') }} </th> <th scope="col">{{ $keywords['Package'] ?? __('Package') }}</th> <th scope="col">{{ $keywords['Amount'] ?? __('Amount') }}</th> <th scope="col"> {{ $keywords['Payment_Status'] ?? __('Payment Status') }} </th> <th scope="col"> {{ $keywords['Payment_Method'] ?? __('Payment Method') }} </th> <th scope="col">{{ $keywords['Receipt'] ?? __('Receipt') }}</th> <th scope="col">{{ $keywords['Actions'] ?? __('Actions') }}</th> </tr> </thead> <tbody> @foreach ($memberships as $key => $membership) <tr> <td>{{ strlen($membership->transaction_id) > 30 ? mb_substr($membership->transaction_id, 0, 30, 'UTF-8') . '...' : $membership->transaction_id }} </td> <td> @if (!empty($membership->package)) {{ $membership->package->title }} <span class="badge badge-secondary badge-xs">{{ $membership->package->term }}</span> @endif </td> @php $bex = json_decode($membership->settings); @endphp <td> @if ($membership->price == 0) {{ $keywords['Free'] ?? __('Free') }} @else {{ format_price($membership->price) }} @endif </td> <td> @if ($membership->status == 1) <h3 class="d-inline-block badge badge-success"> {{ $keywords['Success'] ?? __('Success') }}</h3> @elseif ($membership->status == 0) <h3 class="d-inline-block badge badge-warning"> {{ $keywords['Pending'] ?? __('Pending') }}</h3> @elseif ($membership->status == 2) <h3 class="d-inline-block badge badge-danger"> {{ $keywords['Rejected'] ?? __('Rejected') }}</h3> @endif </td> <td>{{ $membership->payment_method }}</td> <td> @if (!empty($membership->receipt)) <a class="btn btn-sm btn-info" href="#" data-toggle="modal" data-target="#receiptModal{{ $membership->id }}">{{ $keywords['Show'] ?? __('Show') }}</a> @else - @endif </td> <td> @if (!empty($membership->name !== 'anonymous')) <a class="btn btn-sm btn-info" href="#" data-toggle="modal" data-target="#detailsModal{{ $membership->id }}">{{ $keywords['Details'] ?? __('Details') }}</a> @else - @endif </td> </tr> <div class="modal fade" id="receiptModal{{ $membership->id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"> {{ $keywords['Receipt_Image'] ?? __('Receipt Image') }} </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <img src="{{ asset('assets/front/img/membership/receipt/' . $membership->receipt) }}" alt="Receipt" width="100%"> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal">{{ $keywords['Close'] ?? __('Close') }} </button> </div> </div> </div> </div> <div class="modal fade" id="detailsModal{{ $membership->id }}" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"> {{ $keywords['Owner_Details'] ?? __('Owner Details') }} </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <h3 class="text-warning"> {{ $keywords['Member_details'] ?? __('Member details') }} </h3> <label>{{ $keywords['Name'] ?? __('Name') }}</label> <p>{{ $membership->user->first_name . ' ' . $membership->user->last_name }} </p> <label>{{ $keywords['Email'] ?? __('Email') }}</label> <p>{{ $membership->user->email }}</p> <label>{{ $keywords['Phone'] ?? __('Phone') }}</label> <p>{{ $membership->user->phone }}</p> <h3 class="text-warning"> {{ $keywords['Payment_details'] ?? __('Payment details') }} </h3> <p><strong>{{ $keywords['Cost'] ?? __('Cost') }}: </strong> {{ $membership->price == 0 ? 'Free' : $membership->price }} </p> <p><strong>{{ $keywords['Currency'] ?? __('Currency') }}: </strong> {{ $membership->currency }} </p> <p><strong>{{ $keywords['Method'] ?? __('Method') }}: </strong> {{ $membership->payment_method }} </p> <h3 class="text-warning"> {{ $keywords['Package_Details'] ?? __('Package Details') }} </h3> <p><strong>{{ $keywords['Title'] ?? __('Title') }}: </strong>{{ $membership->package->title }} </p> <p><strong>{{ $keywords['Term'] ?? __('Term') }}: </strong> {{ $membership->package->term }} </p> <p><strong>{{ $keywords['Start_Date'] ?? __('Start Date') }}: </strong> @if (\Illuminate\Support\Carbon::parse($membership->start_date)->format('Y') == '9999') <span class="badge badge-danger">{{ $keywords['Never_Activated'] ?? __('Never Activated') }}</span> @else {{ \Illuminate\Support\Carbon::parse($membership->start_date)->format('M-d-Y') }} @endif </p> <p><strong>{{ $keywords['Expire_Date'] ?? __('Expire Date') }}: </strong> @if (\Illuminate\Support\Carbon::parse($membership->start_date)->format('Y') == '9999') - @else @if ($membership->modified == 1) {{ \Illuminate\Support\Carbon::parse($membership->expire_date)->addDay()->format('M-d-Y') }} <span class="badge badge-primary btn-xs">{{ $keywords['modified_by_Admin'] ?? __('modified by Admin') }}</span> @else {{ $membership->package->term == 'lifetime' ? 'Lifetime' : \Illuminate\Support\Carbon::parse($membership->expire_date)->format('M-d-Y') }} @endif @endif </p> <p> <strong>{{ $keywords['Purchase_Type'] ?? __('Purchase Type') }}: </strong> @if ($membership->is_trial == 1) {{ $keywords['Trial'] ?? __('Trial') }} @else {{ $membership->price == 0 ? $keywords['Free'] ?? __('Free') : $keywords['Regular'] ?? __('Regular') }} @endif </p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"> {{ $keywords['Close'] ?? __('Close') }} </button> </div> </div> </div> </div> @endforeach </tbody> </table> </div> @endif </div> </div> </div> <div class="card-footer"> <div class="row"> <div class="d-inline-block mx-auto"> {{ $memberships->links() }} </div> </div> </div> </div> </div> </div> @endsection