@extends('layouts.pdf')
@section('content')
    <hr>
    <br>

    <div class="table-responsive">
        <table class="table table-striped table-bordered table-sm">
            <thead>
                <tr>
                    <th scope="col" class="text-center">N°</th>
                    <th scope="col" class="text-center">{{ __('pdf_reports')['category_list']['header_1'] }}</th>
                    <th scope="col" class="text-center">{{ __('pdf_reports')['category_list']['header_2'] }}</th>
                </tr>
            </thead>
            <tbody>
                @php $no = 1; @endphp

                @forelse($productCategories as $category)
                    <tr class="">
                        <td scope="row">
                            <p class="text-center" style="font-weight: 600">{{ $no++ }}</p>
                        </td>
                        <td>
                            <p class="text-center">{{ $category->category_name }}</p>
                        </td>
                        <td>
                            <p class="text-center">{{ date("Y-m-d", strtotime($category->created_at))}}</p>
                        </td>
                    </tr>
                @empty
                    <tr>
                        <td colspan="3" class="text-center">{{ __('data_tables')['sEmptyTable'] }}</td>
                    </tr>
                @endforelse

            </tbody>
        </table>
    </div>
@endsection
