@extends('layouts.app')

@section('content')
<div class="container">
    <h2>Nuevo Permiso</h2>

    <form action="{{ route('permissions.store') }}" method="POST">
        @csrf

        <div class="mb-3">
            <label>Nombre del permiso</label>
            <input type="text" name="name" class="form-control" required>
        </div>

        <button class="btn btn-success">Guardar</button>
        <a href="{{ route('permissions.index') }}" class="btn btn-secondary">Cancelar</a>
    </form>
</div>
@endsection
