@extends('layouts.base')

@section('content')
    <div class="container-fluid">
        <!-- start page title -->
        <div class="d-flex justify-content-between mt-2 mb-2">
            <h2>
                hashtag categories
            </h2>
            <ol class="breadcrumb m-0">
                {{-- <li class="breadcrumb-item"><a href="{{ route('apps') }}">ระบบจัดการ</a></li> --}}
                {{-- <li class="breadcrumb-item active">ข้อมูลลูกค้า</li> --}}
            </ol>
        </div>
        <!-- end page title -->

        @if ($message = Session::get('success'))
            <div class="alert alert-success">
                <p>{{ $message }}</p>
            </div>
        @endif

        <div class="card">
            <div class="card-body">

                <table class="table">
                    <thead>
                        <tr class="text-center">
                            <th>id</th>
                            <th>category_name</th>
                        </tr>
                    </thead>
                    <tbody>
                        @forelse ($hashtagCategories as $index => $hashtagCategory)
                            <tr>
                                <td class="text-center">
                                   {{ $hashtagCategory->id }}
                                </td>
                                <td>{{ $hashtagCategory->category_name }}</td>


                            </tr>
                        @empty
                            <tr>
                                <td colspan="14">ไม่มีรายการให้แสดง</td>
                            </tr>
                        @endforelse
                    </tbody>
                </table>

            </div>
        </div>
        <!-- end table -->
    </div>
@endsection
