403Webshell
Server IP : 138.197.107.151  /  Your IP : 216.73.217.7
Web Server : Apache/2.4.58 (Ubuntu)
System : Linux BloxBy-Builder 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64
User : wpbetasites_mrakzqskir ( 1022)
PHP Version : 8.3.6
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/shark-admin/resources/views/payments/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/shark-admin/resources/views/payments/list.blade.php
@extends('layouts.app',['title'=>$title])
@section('content')
<div class="main-content" id="result">
    
    <div class="page-content">
        <div class="container-fluid">
            <!-- start page title -->
            <div class="row">
                <div class="col-12">
                    <div class="page-title-box d-flex align-items-center justify-content-between">
                        <h4 class="mb-0 font-size-18">Payments List</h4>

                        
                    </div>
                </div>
            </div>     
            <!-- end page title -->
            {{-- <div class="row">
                <div class="col-lg-12">
                    @if ($errors->any())
                        <div class="alert alert-danger">
                            <ul class="mb-0">
                                @foreach ($errors->all() as $error)
                                    <li>{{ $error }}</li>
                                @endforeach
                            </ul>
                        </div>
                    @endif

                    @if (session('success'))
                        <div class="alert alert-success">
                            {{ session('success') }}
                        </div>
                    @endif
                </div>
            </div> --}}
            <div class="row">
                <div class="col-lg-12">
                    <div class="card">
                        <div class="card-body">
                            <div class="row mb-2">
                                <div class="col-sm">
                                    <form method="GET" action="{{route('payments.list')}}">
                                        <div class="search-box me-2 d-inline-block">
                                            <div class="position-relative">

                                                <input type="text" class="form-control" value="{{ request()->q }}" name="q"  autocomplete="off" id="searchTableList" placeholder="Search...">
                                                <i class="bx bx-search-alt search-icon"></i>
                                                
                                                <a style="right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; display:none;" href="{{route('users.list')}}" class="bx bx-x position-absolute text-muted" id="clearSearch"></a>
                                            </div>
                                            
                                        </div>
                                        
                                    </form>
                                </div>
                                <div class="col-sm-auto">
                                    
                                </div>
                            </div>
                            <!-- end row -->
                            <div class="">
                                <div class="table-responsive">
                                    <div id="projectList-table_wrapper" class="dataTables_wrapper dt-bootstrap4 no-footer">
                                        
                                        <div class="row">
                                            <div class="col-sm-12">
                                                @php
                                                    $dir = request('dir', 'desc');
                                                    $col = request('col', 'created_at');
                                                @endphp
                                                <table class="table project-list-table align-middle table-nowrap dt-responsive nowrap w-100 table-borderless dataTable no-footer dtr-inline" id="projectList-table" aria-describedby="projectList-table_info" style="width: 1015px;">
                                                    <thead class="table-light">
                                                        <tr>
                                                            <th scope="col" class="sorting-disabled">
                                                                
                                                                User
                                                                
                                                            </th>
                                                           <th scope="col" class="sorting-disabled">
                                                                
                                                                    Website
                                                                
                                                            </th>
                                                            <th scope="col" class="sorting-disabled">
                                                                Plan title
                                                            </th>
                                                            <th scope="col" class="sorting-disabled">
                                                                Amount
                                                            </th>
                                                            <th scope="col" class="sorting_disabled">
                                                                Created At
                                                            </th>
                                                            <th scope="col" class="sorting_disabled">
                                                                Status
                                                            </th>
                                                             <th scope="col" class="sorting_disabled">
                                                                 Download Invoice
                                                            </th>
                                                            
                                                        </tr>
                                                    </thead>
                                                    <tbody>
                                                         @foreach ($payments as $index => $payment)
                                                        <tr>
                                                            <td>
                                                                @if($payment->user)
                                                                <a class="text-capitalize" href="{{ route('users.edit', @$payment->user->id) }}">{{ @$payment->user->name }}</a></td>
                                                                @else
                                                                    @if($payment->order && $payment->order->name)
                                                                    {{ @$payment->order->name }}
                                                                    @else
                                                                    NA
                                                                    @endif
                                                                @endif
                                                            <td>{{ $payment->website ? $payment->website->title : $payment->website_title }}</td>
                                                            <td>{{ $payment->order && $payment->order->pricingPlan ? $payment->order->pricingPlan->title : "NA" }}</td>
                                                            <td>${{ $payment->invoice_total/100 }}</td>
                                                            <td>{{ $payment->created_at ? $payment->created_at->format('d M Y') : "N/A" }}</td>
                                                            <td>
                                                                {{ucwords($payment->status)}}
                                                            </td>
                                                            <td>
                                                                @if($payment->status=="succeeded")
                                                                <a href="{{route('invoices.download',['id'=>$payment->id])}}" target="_blank">View Invoice</a>
                                                                @endif
                                                                
                                                            </td>
                                                            
                                                        </tr>
                                                        @endforeach
                                                        
                                                    </tbody>
                                                </table>
                                                @if($payments->isEmpty())
                                                    <p class="text-center text-muted">No payments found.</p>
                                                @endif
                                            </div>
                                        </div>
                                        @if(!$payments->isEmpty())
                                        <div class="row">
                                            <div class="col-sm-12 col-md-5">
                                                <div class="dataTables_info" id="projectList-table_info" role="status" aria-live="polite">Showing {{ $payments->firstItem() }} to {{ $payments->lastItem() }} of {{ $payments->total() }} entries</div>
                                            </div>
                                            <div class="col-sm-12 col-md-7">
                                                <div class="dataTables_paginate paging_simple_numbers pagination-rounded" id="projectList-table_paginate">
                                                    {{ $payments->links('pagination::bootstrap-4') }}
                                                </div>
                                            </div>
                                        </div>
                                        @endif
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- end card -->
                </div>
            </div>
            <!-- end row -->
            
        </div> <!-- container-fluid -->
    </div>
</div>
@endsection
@push('topcss')
 <link href="{{ asset('assets/libs/datatables.net-bs4/css/dataTables.bootstrap4.min.css') }}" rel="stylesheet" type="text/css" />
<link href="{{ asset('assets/libs/datatables.net-responsive-bs4/css/responsive.bootstrap4.min.css') }}" rel="stylesheet" type="text/css" />  


@endpush
@push('scripts')
<script>
    const input = document.getElementById('searchTableList');
  const clearBtn = document.getElementById('clearSearch');

  clearBtn.style.display = $("#searchTableList").val() ? 'block' : 'none';

  input.addEventListener('input', function () {
    clearBtn.style.display = this.value ? 'block' : 'none';
  });

  clearBtn.addEventListener('click', function () {
    input.value = '';
    clearBtn.style.display = 'none';
    input.focus(); // optional: keep focus after clearing
  });
</script>
<script>
    var clicked_confirm_action = null;

    $(".show_confirm_message").click(function(e){
        e.preventDefault();

        clicked_confirm_action = $(this);

        $("#confirmModal").find(".modal-body").html($(this).attr("data-confirm-msg"));

        $("#confirmModal").modal("show");

        

    })
    $("#confirmYesBtn").click(function(){
        clicked_confirm_action.closest("form").submit();
    })
</script>
@endpush

Youez - 2016 - github.com/yon3zu
LinuXploit