Products
@if($message = session()->pull('message'))
{{ $message }}
@endif @if($message_delete = session()->pull('message_delete'))
{{ $message_delete }}
@endif
{{ csrf_field() }}
Name:
Description
{{ old('description') }}
Price
Quantity
Добавить
@if(count($errors))
@foreach($errors->all() as $error)
{{ $error }}
@endforeach
@endif
@if(count($products))
#
Name
Description
Quantity
Price
Action
@foreach($products as $product)
{{ $loop->iteration }}
{{ $product->name }}
{{ $product->description }}
{{ $product->quantity }}
{{ $product->price }}
@method('DELETE') @csrf
Delete
@endforeach
@endif