@extends('layouts.admin.home') @section('title') {{ __('admin.pages.categories.title') }} @endsection @section('css') @endsection @section('content')
{{ __('admin.pages.categories.add_category') }} @include('flash::message') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
{{ __('admin.pages.categories.module_label') }}
{{ __('admin.pages.categories.overview') }}

{{ __('admin.pages.categories.overview_subtitle') }}

@php $hasActiveFilters = ($search ?? '') !== ''; @endphp
@if(($search ?? '') !== '') @endif
@if($hasActiveFilters) @endif {{ $categories->total() }}
@if($hasActiveFilters)
@if(($search ?? '') !== '') {{ $search }} × @endif {{ __('admin.pages.common.reset') }}
@endif
@forelse ($categories as $record) @php $activationLabel = $record->is_activate == 1 ? __('admin.pages.common.active') : __('admin.pages.common.inactive'); @endphp @empty @endforelse
@php $from = $categories->firstItem(); $to = $categories->lastItem(); $total = $categories->total(); @endphp {{ __('admin.pages.common.showing_entries', ['from' => $from, 'to' => $to, 'total' => $total]) }}
@endsection @section('script') @endsection