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

@extends('layouts.admin') 

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

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

@section('breadcrumbs')
<li class="breadcrumb-item">
  <a href="{{route('admin.admin_crypto_accounts.index')}}">{{ tr('admin_crypto_accounts') }}</a>
</li>
<li class="breadcrumb-item active">
  {{ tr('view_admin_crypto_accounts') }}
</li>
@endsection

@section('content')
<div class="card">
@include('admin.admin_crypto_accounts._search')
<div class="table-responsive">
  <table class="table table-hover">
    <thead class="border-top">
      <tr>
          <th>{{tr('s_no')}}</th>
          <th>{{ tr('nickname') }}</th>
          <th>{{ tr('wallet_address') }}</th>
          <th>{{ tr('token_type') }}</th>
          <th>{{ tr('amount') }}</th>
          <th>{{ tr('is_default') }}</th>
          <th>{{tr('status')}}</th>
          <th>{{ tr('action') }} </th>
      </tr>
    </thead>
    <tbody class="table-border-bottom-0">
      @forelse($admin_crypto_accounts as $key => $admin_crypto_account)
      @include('admin.admin_crypto_accounts.modals')
      <tr>
        <td><span class="fw-medium">{{ $admin_crypto_accounts->firstItem() + $key}}</span></td>
        <td>
          <a href="{{ route('admin.admin_crypto_accounts.show', $admin_crypto_account) }}">
            {{ $admin_crypto_account->nickname ? : tr('na') }}
          </a>
        </td>
        <td>
          <a href="{{ route('admin.admin_crypto_accounts.show', $admin_crypto_account) }}" class="text-danger">
            {{ $admin_crypto_account->wallet_address ? wallet_text_formatted($admin_crypto_account->wallet_address, 5) : tr('na') }}
          </a><x-copy-btn :text="$admin_crypto_account->wallet_address"/>
        </td>
        <td>
            {{ $admin_crypto_account->token_type ? : tr('na') }}
        </td>
        <td>
            {{ $admin_crypto_account->amount ? formatted_amount($admin_crypto_account->amount) : 0.00 }}
        </td>
        <td>
          <span class="badge bg-label-{{$admin_crypto_account->is_default ? 'success' : 'danger'}} me-1">
            {{$admin_crypto_account->is_default ? tr('yes') : tr('no')}}
            </span>
        </td>
        <td>
          <span class="badge bg-label-{{$admin_crypto_account->status ? 'success' : 'danger'}} me-1" id="statusText{{$admin_crypto_account->id}}">
            {{status_formatted($admin_crypto_account->status)}}
          </span>
          <label class="switch switch-square switch-success">
            <input 
              type="checkbox" 
              onclick="updateStatus({{$admin_crypto_account->id}}, '{{tr("admin_crypto_account")}}')"
              id="statusSwitch{{$admin_crypto_account->id}}"
              class="switch-input is-invalid" {{$admin_crypto_account->status ? 'checked' : ''}} 
            />
            <span class="switch-toggle-slider">
              <span class="switch-on"></span>
              <span class="switch-off"></span>
            </span>
          </label>
        </td>
        <td>
           <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">
              <li><a class="dropdown-item" href="{{ route('admin.admin_crypto_accounts.show', $admin_crypto_account) }}" class="dropdown-item">{{tr('view')}}</a></li>
              <li><a class="dropdown-item" href="{{ route('admin.admin_crypto_accounts.edit', $admin_crypto_account) }}" class="dropdown-item">{{tr('edit')}}</a></li>
              <li><a class="dropdown-item" href="{{ route('admin.admin_crypto_accounts.destroy', $admin_crypto_account) }}" class="dropdown-item" data-bs-toggle="modal" data-bs-target="#staticPageDeleteModal{{ $admin_crypto_account->id }}">{{tr('delete')}}</a></li>
              @if($admin_crypto_account->is_default == NO)
              <li><a class="dropdown-item" href=""  class="dropdown-item" data-bs-toggle="modal" data-bs-target="#makeAsDefault{{ $admin_crypto_account->id }}">{{ tr('make_default') }}</a></li>
              @endif
            </ul>
          </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>
</div>
@if($admin_crypto_accounts->isNotEmpty())
<nav aria-label="Page navigation">
  <ul class="pagination justify-content-end pagination-margin">
    <li class="page-item prev">
      <li> {{ $admin_crypto_accounts->withQueryString()->links('pagination::bootstrap-4') }}</li>
    </li>
  </ul>
</nav>
@endif
</div>
@endsection
Back to Directory File Manager