Viewing File: /home/ubuntu/misabloom-backend-base/resources/views/admin/wallet_transactions/index.blade.php
@extends('layouts.admin')
@section('title')
{{ tr('wallet_transactions') }}
@endsection
@section('content-header')
{{ tr('wallet_transactions') }}
@if($user)
- <a href="{{ route('admin.users.view', ['user_id' => request()->user_id]) }}"> {{ $user->name ? : tr('na') }} </a>
@endif
@endsection
@section('breadcrumb')
<li class="breadcrumb-item text-muted"> <a href="{{ route('admin.wallet_transactions.index') }}" class="text-muted">{{tr('wallet_transactions')}} </a></li>
<li class="breadcrumb-item"> <span class="bullet bg-gray-300 w-5px h-2px"></span> </li>
<li class="breadcrumb-item active">{{ tr('view_wallet_transactions') }}</li>
@endsection
@section('content')
<div class="card card-flush">
<div class="card-body">
@include('admin.wallet_transactions._search')
@if(isset(request()->search_key))
<p class="text-danger"> {{ tr('search_results_for') }} : "{{ request()->search_key }}" </p>
@endif
<div class="table-scrollbar">
<table class="table align-middle table-row-dashed fs-6">
@if($wallet_transactions->isNotEmpty())
<thead>
<tr class="text-start text-muted fw-bolder fs-7 text-uppercase gs-0">
<th class="min-w-1px" nowrap=""> {{ tr('s_no') }} </th>
<th class="min-w-1px"> {{ tr('reference_id') }} </th>
<th class="min-w-1px"> {{ tr('user') }} </th>
<th class="min-w-1px"> {{ tr('requested_amount') }} </th>
<th class="min-w-1px"> {{ tr('paid_amount') }} </th>
<th class="min-w-1px"> {{ tr('payment_id') }} </th>
<th class="min-w-1px"> {{ tr('status') }} </th>
<th class="min-w-1px"> {{ tr('action') }} </th>
</tr>
</thead>
<tbody class="text-gray-600 fw-bold">
@foreach($wallet_transactions as $i => $wallet_transaction)
<tr>
<td>{{ $i+$wallet_transactions->firstItem() }}</td>
<td>
<a href="{{ route('admin.wallet_transactions.view', ['user_wallet_payment_id' => $wallet_transaction->id]) }}" class="menu-link">
{{ $wallet_transaction->unique_id ? : tr('na') }}
</a>
</td>
<td>
<a href="{{ route('admin.users.view', ['user_id' => $wallet_transaction->user_id]) }}" class="menu-link">
{{ $wallet_transaction->user->name ? : tr('na') }} </a>
</td>
<td class="text-capitalize"> {{ $wallet_transaction->requested_amount_formatted ? : tr('na') }} </td>
<td class="text-capitalize"> {{ $wallet_transaction->paid_amount_formatted ? : tr('na') }} </td>
<td class="text-capitalize" nowrap=""> {{ $wallet_transaction->payment_id ? : tr('na') }} </td>
<td>
<span class="badge py-3 px-4 fs-7 {{ get_status_code($wallet_transaction->status) }} ">
{{ $wallet_transaction->status_formatted ? : tr('na') }}
</span>
</td>
<td class="">
<a href="{{ route('admin.wallet_transactions.view', ['user_wallet_payment_id' => $wallet_transaction->id]) }}" class="btn btn-sm btn-primary">{{ tr('view') }}</a>
</td>
</tr>
@endforeach
@else
<tr>
<div class="card overlay border mt-8">
<div class="card-body p-0">
<div class="overlay-wrapper h-100px bgi-no-repeat bgi-size-contain bgi-position-center">
<h2 class="text-center pt-12"> {{ tr('no_data_found') }} </h2>
</div>
</div>
</div>
</tr>
@endif
</tbody>
</table>
</div>
<ul class="pagination pagination-outline justify-content-end mt-5">
<li class="page-item"> {{ $wallet_transactions->appends(request()->input())->links('pagination::bootstrap-4') }} </li>
</ul>
</div>
</div>
</div>
</div>
</div>
@endsection
Back to Directory
File Manager