@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')['sale_list']['header_1'] }}</th>
                    <th scope="col" class="text-center">{{ __('pdf_reports')['sale_list']['header_2'] }}</th>
                    <th scope="col" class="text-center">{{ __('pdf_reports')['sale_list']['header_3'] }}</th>
                    <th scope="col" class="text-center">{{ __('pdf_reports')['sale_list']['header_4'] }}</th>
                </tr>
            </thead>
            <tbody>
                @php $no = 1; @endphp

                @forelse($orders as $orden)
                    <tr class="">
                        <td scope="row">
                            <p class="text-center" style="font-weight: 600">{{ $no++ }}</p>
                        </td>
                        <td>
                            <p class="text-center">{{ $orden->contador }}</p>
                        </td>
                        <td>
                            <p class="text-center">{{ $orden->total }}</p>
                        </td>
                        <td>
                            <p class="text-center">{{ $orden->mes }}</p>
                        </td>
                        <td>
                            <p class="text-center">{{ $orden->anio }}</p>
                        </td>
                    </tr>
                @empty
                    <tr>
                        <td colspan="5" class="text-center">{{ __('data_tables')['sEmptyTable'] }}</td>
                    </tr>
                @endforelse

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