@extends('layout') @section('h4-page', __('products')) @section('contents')
@if (session('success')) @endif @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@forelse (@$main as $key => $item) @empty @endforelse
# {{__("ProductName")}} {{__("Action")}}
{{ $main->currentPage() > 1 ? $main->perPage() * $main->currentPage() - $main->perPage() + $key + 1 : $key + 1 }} {{ $item->name }} {{-- edit --}}
{{__("NoDataFound")}}
{{ @$main->appends(request()->except('page'))->links('pagination::bootstrap-5') }}
@endsection @section('scripts') @endsection