@extends('app.dashboard')
@section('title', 'Admin')

@include('dashboard.js.admins')

@section('content')

<div class="container-xxl flex-grow-1 container-p-y">
    <h4 class="fw-bold py-3 mb-4"><span class="text-muted fw-light">Data /</span> Admin</h4>
    <!-- Bordered Table -->
    <div class="card">
        <div class="card-header">
            <div class="row">
                <div class="col-6">
                    <h4 class="m-0">Admin List</h4>
                </div>
                <div class="col-6 text-end">
                    <button class="btn btn-sm btn-success btn-add-admin" data-bs-toggle="modal" data-bs-target="#crudModal"><i class="bx bx-plus-circle"></i> Add Admin </button>
                </div>
            </div>
        </div>
        <div class="card-body">
            <div class="table-responsive text-wrap">
                <table class="table">
                <thead>
                    <tr>
                        <th width="5%">No.</th>
                        <th>Name</th>
                        <th>Username</th>
                        <th>Email</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>

                </tbody>
                </table>
            </div>
        </div>
    </div>
    <!--/ Bordered Table -->
</div>

<div class="modal fade" id="crudModal" tabindex="-1" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="exampleModalLongTitle"><span class="title-admin-modal"></span> Admin <span class="admin-name"></span></h5>
            <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form>
                    <div class="errors"></div>
                    <div class="form-row">
                        <div class="form-group col-12">
                            <label for="name">Name <i class="bx bxs-info-circle text-danger"></i></label>
                            <input type="text" class="form-control" id="name" placeholder="Name" required>
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="form-group col-12">
                            <label for="email">Email <i class="bx bxs-info-circle text-danger"></i></label>
                            <input type="email" class="form-control" id="email" placeholder="Email" required>
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="form-group col-12">
                            <label for="password">Password <i class="bx bxs-info-circle text-danger required-input"></i></label>
                            <input type="password" class="form-control" id="password" placeholder="Password">
                        </div>
                    </div>
                    <div class="form-row">
                        <div class="form-group col-12">
                            <label for="password_confirmation">Password Confirmation <i class="bx bxs-info-circle text-danger required-input"></i></label>
                            <input type="password" class="form-control" id="password_confirmation" placeholder="Password Confirmation">
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-primary btn-confirm-update-admin">Update</button>
                <button type="button" class="btn btn-primary btn-confirm-add-admin">Add</button>
            </div>
        </div>
    </div>
</div>

@endsection
