@extends('admin.layouts.master') @push('css') @endpush @section('page-title') @include('admin.components.page-title',['title' => __($page_title)]) @endsection @section('breadcrumb') @include('admin.components.breadcrumb',['breadcrumbs' => [ [ 'name' => __("Dashboard"), 'url' => setRoute("admin.dashboard"), ], [ 'name' => __("Gateways"), 'url' => setRoute('admin.payment.gateway.view',[$gateway->slug,strtolower($gateway->type)]), ], [ 'name' => $gateway->name, 'url' => setRoute('admin.payment.gateway.edit',[$gateway->slug,strtolower($gateway->type),$gateway->alias]), ] ], 'active' => __("Crypto Assets")]) @endsection @section('content')
{{ __("Crypto Wallets") }}
@include('admin.components.link.custom',[ 'href' => setRoute('admin.crypto.assets.generate.wallet', $gateway->alias), 'class' => "btn--base", 'text' => __("Generate Wallets"), 'permission' => "admin.crypto.assets.generate.wallet", ])
{{ __("Wallet not present in some currency/coin.") }} {{ __("Ex:") }} @foreach ($wallet_not_available_coins as $coin) {{ $coin }}  @endforeach . {{ __("Click the generate wallets button to create dynamically wallets.") }}
@foreach ($gateway->supported_currencies as $currency)
{{ $currency }}
@include('admin.components.link.add-default',[ 'href' => "#wallet-store", 'class' => "modal-btn wallet-add-btn", 'text' => __("Add Wallet"), 'permission' => "admin.crypto.assets.wallet.store", 'attribute' => "data-coin=$currency data-gateway=$gateway->alias", ])
@php $wallet_assets = $gateway->cryptoAssets->where('coin', $currency)->first(); @endphp @forelse ($wallet_assets->credentials->credentials ?? [] as $item)
@include('admin.components.form.switcher',[ 'label' =>__("Status"), 'name' => 'type', 'value' => old('type',$item->status), 'options' => [__("active") => 1,__("Deactive") => 0], 'status' => true, 'permission' => 'admin.crypto.assets.wallet.status.update' ])
@include('admin.components.link.delete-default',[ 'href' => 'javascript:void(0)', 'class' => 'wallet-delete-btn py-1 px-2', 'permission' => 'admin.crypto.assets.wallet.delete', 'attribute' => "data-id=$wallet_assets->id data-credential-id=$item->id", ]) @include('admin.components.link.info-default',[ 'href' => setRoute('admin.crypto.assets.wallet.transactions', [$wallet_assets->id, $item->id]), 'class' => 'py-1 px-2', 'permission' => 'admin.crypto.assets.wallet.transactions' ])
  • Mnemonic: {{ @$item->mnemonic }}
  • @isset($item->xpub)
  • Xpub: {{ $item->xpub }}
  • @endisset
  • Private Key: {{ @$item->private_key }}
  • Public Address: {{ @$item->address }}
  • @if (is_numeric($item->balance))
  • Balance: {{ $item->balance }}
  • @endif @if (isset($item->balance->balance))
  • Balance: {{ $item->balance->balance }}
  • @endif @if (isset($item->balance->incoming))
  • Incoming Balance: {{ $item->balance->incoming }}
  • @endif @if (isset($item->balance->outgoing))
  • Outgoing Balance: {{ $item->balance->outgoing }}
  • @endif @if (isset($item->balance->incomingPending))
  • Incoming Pending Balance: {{ $item->balance->incomingPending }}
  • @endif @if (isset($item->balance->outgoingPending))
  • Outgoing Pending Balance: {{ $item->balance->outgoingPending }}
  • @endif
@empty
{{ __("This Coin is Under Maintenance Or Need to Generate Wallet. You Can Add Wallet Manually By Clicking Add Button.") }}
@endforelse
@endforeach {{-- Wallet Store Modal START --}} @if (admin_permission_by_name("admin.crypto.assets.wallet.store"))
@endif {{-- Wallet Store Modal END --}} {{-- Wallet Address Delete START --}} @if (admin_permission_by_name("admin.crypto.assets.wallet.delete"))
@endif {{-- Wallet Address Delete END --}} {{-- Wallet Address Status Update START --}} @if (admin_permission_by_name("admin.crypto.assets.wallet.status.update")) @endif {{-- Wallet Address Status Update END --}} @endsection @push('script') @endpush