@extends('admin.layout.app') @section('preload-section') @endsection @section('content')
@if (session()->has('success'))
@if (is_array(session()->get('success')))
    @foreach (session()->get('success') as $message)
  • {{ $message }}
  • @endforeach
@else {{ session()->get('success') }} @endif
@endif @if (count($errors) > 0) @if ($errors->any()) @endif @endif

{{ __('keywords.Product') }} {{ __('keywords.List') }}

Clear
@if (request('search') || request('category') || request('type'))
{{ $product->total() }} product(s) found @if (request('search')) for "{{ request('search') }}" @endif
@endif {{-- --}} @if (count($product) > 0) @php $i = ($product->currentPage() - 1) * $product->perPage() + 1; @endphp @foreach ($product as $products) {{-- --}} @php $i++; @endphp @endforeach @else @endif
#{{ __('keywords.Product') }} {{ __('keywords.Name') }} {{ __('keywords.Product') }} {{ __('keywords.Image') }} {{ __('keywords.Product Id') }} {{ __('keywords.Category') }} {{ __('keywords.Type') }} {{ __('keywords.Actions') }}
{{ $i }} @if (request('search')) {!! str_ireplace(request('search'), '' . request('search') . '', $products->product_name) !!} @else {{ $products->product_name }} @endif image @if (request('search')) {!! str_ireplace(request('search'), '' . request('search') . '', $products->product_id) !!} @else {{ $products->product_id }} @endif @if (request('search')) {!! str_ireplace(request('search'), '' . request('search') . '', $products->title) !!} @else {{ $products->title }} @endif @if (request('search')) {!! str_ireplace(request('search'), '' . request('search') . '', $products->type) !!} @else {{ $products->type }} @endif
@if (request('search') || request('category') || request('type')) {{ __('keywords.No products found matching your search criteria') }} @else {{ __('keywords.No data found') }} @endif

{{ $product->links('pagination::bootstrap-4') }}
@endsection @section('postload-section') @endsection