File: /var/www/BtPayments/BtPayments-platform/resources/views/portal/withdraw-accounts/index.blade.php
@extends('portal._layouts.default')
@section('MainContent')
<div class="container-fluid pb-5">
<div class="row justify-content-center">
<div class="col-12">
<div class="header">
<div class="header-body">
<div class="row align-items-center">
<div class="col">
<h6 class="header-pretitle">Transactions</h6>
<h1 class="header-title">Withdraw Accounts</h1>
</div>
<div class="col-auto">
<a href="{{ route('withdraw-accounts.create') }}" class="btn btn-primary lift">Add an account</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="card">
<div class="table-responsive">
<table class="table table-sm table-nowrap card-title">
<thead>
<tr>
<th>Account Name</th>
<th>Account Network</th>
<th>Account Address</th>
<th>Remark</th>
<th>Action</th>
</tr>
</thead>
<tbody class="list">
@if ($items->isEmpty())
<tr><td>There is currently no data.</td></tr>
@endif
@foreach($items as $item)
<tr>
<td>{{ $item->account_name }}</td>
<td>{{ $item->type }} - {{ $item->account_network }}</td>
<td>{{ $item->account_address }}</td>
<td>{{ $item->remark }}</td>
<td>
<a class="btn btn-sm btn-white" href="{{ route('withdraw-accounts.show', $item) }}"><i class="fe fe-file-text"></i> Detail</a>
<a class="btn btn-sm btn-white" href="{{ route('withdraw-accounts.edit', $item) }}"><i class="fe fe-edit"></i> Edit</a>
<form class="ms-2" action="{{ route('withdraw-accounts.destroy', $item) }}" method="POST" style="display: inline;">
@csrf
@method('DELETE')
<button type="submit" class="btn btn-sm btn-outline-danger" onclick="return confirm('Are you sure you want to delete this item?')"><i class="fe fe-trash"></i> Delete</button>
</form>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Pagination -->
@if($items->hasPages())
{{ $items->links() }}
@endif
</div>
@endsection