Files
Sistema-Educativo-Laravel/resources/views/note/edit.blade.php
T

33 lines
1.0 KiB
PHP

@extends('layouts.landing')
@section('title',"Edit")
@section('content')
<div class="container-fluid">
<div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-primary">Editar nota</h6>
</div>
<div class="card-body">
<a href="{{route('note.index')}}">Regresar</a>
<form action="{{route('note.update',$note->id)}}" method="POST">
@method('PUT')
@csrf
<div class="mb-3">
<label class="small mb-1">title</label>
<input class="form-control" name="title" value="{{$note->title}}">
</div>
<div class="mb-3">
<label class="small mb-1">description</label>
<input class="form-control" name="description" value="{{$note->description}}">
</div>
<input class="btn btn-primary" type="submit" value="Update">
</form>
</div>
</div>
</div>
@endsection