Viewing File: /home/ubuntu/btcthrottle-backend/resources/views/admin/admin_crypto_accounts/view.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')
@include('admin.admin_crypto_accounts.modals')
 <div class="card mb-4">
  <div class="card-header header-elements d-flex justify-content-between align-items-center">
  <h5 class="m-0 me-2">{{tr('view_admin_crypto_account')}} - {{$admin_crypto_account->unique_id ?: tr('na')}}</h5>
  <div class="d-flex align-items-center">
    <div class="card-title-elements ms-auto">
      <a href="{{route('admin.admin_crypto_accounts.edit', $admin_crypto_account)}}" class="text-body" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="tooltip-info" title="{{tr('edit')}}"><i class="ti ti-edit ti-sm me-2 text-info"></i></a>
      <a href="{{route('admin.admin_crypto_accounts.destroy', $admin_crypto_account)}}" class="text-body delete-record" data-bs-toggle="modal" data-bs-target="#staticPageDeleteModal{{$admin_crypto_account->id}}"><i class="ti ti-trash ti-sm mx-2 text-danger" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="tooltip-danger" title="{{tr('delete')}}"></i></a>
      @if($admin_crypto_account->is_default == NO)
       <a href="{{route('admin.admin_crypto_accounts.destroy', $admin_crypto_account)}}" class="text-body delete-record" data-bs-toggle="modal" data-bs-toggle="modal" data-bs-target="#makeAsDefault{{ $admin_crypto_account->id }}"><i class="ti ti-check ti-sm mx-2 text-danger" data-bs-toggle="tooltip" data-bs-placement="top" data-bs-custom-class="tooltip-success" title="{{tr('make_default')}}"></i></a>
      @endif
    </div>
  </div>
</div>
  <div class="card-body border-top">
    <div class="row">
      <div class="col-6">
        <div class="table-responsive text-nowrap">
          <table class="table table-bordered">
            <tbody>
              <tr>
                <td><span class="fw-medium">{{ tr('unique_id') }}</span></td>
                <td class="text-danger">{{ $admin_crypto_account->unique_id ? : tr('na') }}</td>
              </tr>
              <tr>
                <td><span class="fw-medium">{{ tr('nickname') }}</span></td>
                <td>{{ $admin_crypto_account->nickname ? : tr('na') }}</td>
              </tr>
              <tr>
                <td><span class="fw-medium">{{ tr('wallet_address') }}</span></td>
                <td>
                    {{ $admin_crypto_account->wallet_address ? wallet_text_formatted($admin_crypto_account->wallet_address, 5) : tr('na') }}<x-copy-btn :text="$admin_crypto_account->wallet_address"/>
                  </td>
              </tr>
              <tr>
                <td><span class="fw-medium">{{ tr('token_type') }}</span></td>
                <td>{{ $admin_crypto_account->token_type ? : tr('na') }}</td>
              </tr>
              <tr>
                <td><span class="fw-medium">{{ tr('is_default') }}</span></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>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <div class="col-6">
        <div class="table-responsive text-nowrap">
          <table class="table table-bordered">
            <tbody>
              <tr>
                <td><span class="fw-medium">{{ tr('amount') }}</span></td>
                 <td>
                    {{ $admin_crypto_account->amount ? formatted_amount($admin_crypto_account->amount) : 0.00 }}
                </td>
              </tr>
              <tr>
                <td><span class="fw-medium">{{tr('status')}}</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>
              </tr>
              <tr>
                <td><span class="fw-medium">{{tr('created_at')}}</span></td>
                <td>{{ common_date($admin_crypto_account->created_at, auth()->user()->timezone)}}</td>
              </tr>
              <tr>
                <td><span class="fw-medium">{{tr('updated_at')}}</span></td>
                <td>{{ common_date($admin_crypto_account->updated_at, auth()->user()->timezone)}}</td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  </div>
</div>
@endsection
Back to Directory File Manager