@extends('layouts.admin')

@section('title', $title)
@section('page-title', $title)

@section('content')
    <div class="row">
        <div class="col-12">
            <div class="card">
                <div class="card-header align-items-center d-flex">
                    <h4 class="card-title mb-0 flex-grow-1">{{ $title }}</h4>
                    <div class="flex-shrink-0">
                        <button type="button" class="btn btn-success btn-sm">
                            <i class="ri-add-line align-middle me-1"></i> Add New
                        </button>
                    </div>
                </div>
                <div class="card-body">
                    <p class="text-muted mb-4">{{ $subtitle }}</p>
                    <div class="table-responsive">
                        <table class="table table-bordered table-striped align-middle table-nowrap mb-0">
                            <thead class="table-light">
                                <tr>
                                    @foreach($columns as $column)
                                        <th scope="col">{{ $column }}</th>
                                    @endforeach
                                    <th scope="col" class="text-end">Action</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    @foreach($columns as $column)
                                        <td class="text-muted">—</td>
                                    @endforeach
                                    <td class="text-end">
                                        <div class="d-flex gap-2 justify-content-end">
                                            <button type="button" class="btn btn-sm btn-soft-primary"><i class="ri-pencil-line"></i></button>
                                            <button type="button" class="btn btn-sm btn-soft-danger"><i class="ri-delete-bin-line"></i></button>
                                        </div>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
