Viewing File: /home/ubuntu/btcthrottle-backend/resources/views/admin/user_payments/index.blade.php

@extends('layouts.admin') 

@section('title', tr('user_payments'))

@section('content-header', tr('user_payments')) 

@section('breadcrumbs')
<li class="breadcrumb-item">
  <a href="{{route('admin.user_payments.index')}}">{{ tr('user_payments') }}</a>
</li>
<li class="breadcrumb-item active">
  {{ tr('view_user_payments') }}
</li>
@endsection
@section('content')
<div class="card bg-white border-0 rounded-10 mb-4">
   <div class="card-body p-4">
      <div class="d-sm-flex justify-content-between align-items-center border-bottom pb-20 mb-20">
         <h4 class="fw-bold fs-18 mb-0 text-center">{{tr('user_payments')}}</h4>
         <div class="d-sm-flex align-items-center gap-3 mt-3 mt-sm-0 justify-content-center">
           @include('admin.user_payments._search')
         </div>
      </div>
      <div class="default-table-area recent-orders">
         <div class="table-responsive">
            <table class="table align-middle">
               <thead>
                  <tr>
                     <th scope="col">{{tr('s_no')}}</th>
                     <th scope="col">{{tr('reference_id')}}</th>
                     <th scope="col">{{tr('name')}}</th>
                     <th scope="col">{{tr('transaction_hash')}}</th>
                     <th scope="col">{{tr('btc_transaction_hash')}}</th>
                     <th scope="col">{{tr('btc_tokens')}}</th>
                     <th scope="col">{{tr('status')}}</th>
                     <th scope="col">{{tr('action')}}</th>
                  </tr>
               </thead>
               <tbody>
               	 @forelse($user_payments as $key => $user_payment)
                    @include('admin.user_payments.modals')
                  <tr>
                    <td class="fs-15 fw-semibold">{{ $user_payments->firstItem() + $key}}</td>
                    <td>
                      <a href="{{ route('admin.user_payments.show', $user_payment) }}">
                          {{ $user_payment->unique_id ? Str::limit($user_payment->unique_id, 30) : tr('na') }}
                      </a>
                    </td>
                    <td>
                        <span class="fw-semibold text-primary">{{$user_payment->name ?? tr('na')}}</span>
                    </td>
                    <td>{{$user_payment->transaction_hash ? wallet_text_formatted($user_payment->transaction_hash, 5) : tr('na')}}<x-copy-btn :text="$user_payment->transaction_hash"/></td>
                    <td>{{$user_payment->btc_transaction_hash ? wallet_text_formatted($user_payment->btc_transaction_hash, 5) : tr('na')}}<x-copy-btn :text="$user_payment->btc_transaction_hash"/></td>
                    
                    <td>
                        {{ $user_payment->btc_tokens ?: 0.00}}
                    </td>
        					<td>
        					    <span class="badge {{$user_payment->status ? 'badge bg-label-success' : 'badge bg-label-warning'}} bg-opacity-10 fw-semibold fs-13 py-2 px-3">
        					        {{ $user_payment->status ?  tr('paid') : tr('not_paid') }}
        					    </span>
        					</td>
                    <td>
                     	<div class="mt-2 me-2 d-inline-block">
      							<div class="btn-group">
      								<button type="button" class="btn btn-label-primary dropdown-toggle" data-bs-toggle="dropdown" aria-expanded="false">{{tr('actions')}}</button>
      								<ul class="dropdown-menu bg-white">
      									<li><a class="dropdown-item" href="{{ route('admin.user_payments.show', $user_payment) }}" class="dropdown-item">{{tr('view')}}</a></li>
      								</ul>
      							</div>
      						</div>
                    </td>
                  </tr>
                  @empty
                    <tr>
                      <td colspan="12" class="text-center">
                        <span class="fw-medium no-data-frame-card">
                           <img src="{{asset('images/no-data.png')}}" alt="No Data" class="no-data-avater">
                          <h3> {{tr('no_data_found')}} </h3>
                        </span>
                      </td>
                    </tr>
                  @endforelse
               </tbody>
            </table>
         </div>
          <nav aria-label="..." class="mt-3">
              <ul class="pagination pagination-sm justify-content-end">
                <li class="page-item disabled">{{ $user_payments->withQueryString()->links('pagination::bootstrap-4') }}
                </li>
              </ul>
            </nav>
      </div>
   </div>
</div>
@endsection
@section('scripts')
@endsection
Back to Directory File Manager