@extends('adminlte::page') @section('template_title') Productos @endsection @section('content')
{{ __('Productos') }}
@if ($message = Session::get('success'))

{{ $message }}

@endif
@foreach ($productos as $producto) @endforeach
No Nombre Descripcion Precio Stock Categoria
{{ ++$i }} {{ $producto->nombre }} {{ $producto->descripcion }} {{ $producto->precio }} {{ $producto->stock }} {{ $producto->categoria?->nombre ?? 'Sin categoría' }}
{{ __('Show') }} {{ __('Edit') }} @csrf @method('DELETE')
{!! $productos->withQueryString()->links() !!}
@endsection