@extends('layouts.app')

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

    <form action="{{ route('permissions.update',$permission) }}" method="POST">
        @csrf
        @method('PUT')

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

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