
@extends(ucfirst(activeGuard()).'.'.layout())
@section('pagetitle', __('trans.categoryReport'))
@section('content')

<form method="GET" class="row g-3 mb-4">
    <div class="col-md-3">
        <label for="from" class="form-label">@lang('trans.from')</label>
        <input type="date" id="from" name="from" class="form-control" value="{{ request('from') }}">
    </div>

    <div class="col-md-3">
        <label for="to" class="form-label">@lang('trans.to')</label>
        <input type="date" id="to" name="to" class="form-control" value="{{ request('to') }}">
    </div>

    <div class="col-md-3 text-end d-flex justify-content-between align-items-end">
        <button type="submit" class="btn btn-primary w-50">
            <i class="fa fa-search"></i> @lang('trans.search')
        </button>
        <a href="{{ route(Route::currentRouteName()) }}" class="btn btn-secondary w-50 ms-3">
            <i class="fa fa-times"></i> @lang('trans.Clear')
        </a>
    </div>
</form>

<table class="table table-bordered table-hover table-striped data-table">
    <thead>
        <tr>
            <th>#</th>
            <th>@lang('trans.title_ar')</th>
            <th>@lang('trans.title_en')</th>
            <th>@lang('trans.product_count')</th>
            <th>@lang('trans.date')</th>
      
        </tr>
    </thead>
    <tbody>
        @foreach ($Models as $Model)
               <tr>
                <td>{{ $Model->id }}</td>
                <td>{{ $Model->title_ar }}</td>
                <td>{{ $Model->title_en }}</td>
                <td>{{ $Model->products_count }}</td>
                <td>{{ $Model->created_at }}</td>
            </tr>
        @endforeach
    </tbody>
</table>


@endsection