@extends('main') @section('title' , '| Wszystkie kategorie') @section('content')

Kategorie

@foreach ($categories as $category) @endforeach
# Nazwa:
{{ $category->id }} {{ $category->name }}
{!! Form::open(['route' => 'categories.store' , 'method' => 'POST']) !!}

Nowa kategoria

{{ Form::label('name' , 'Name:') }} {{ Form::text('name' , null , ['class' => 'form-control']) }} {{ Form::submit('Utwórz nową kategorię' , ['class' => 'btn btn-primary btn-block btn-h1-spacing' ]) }} {!! Form::close() !!}
@endsection