@extends('layouts.landing')

@section('title',"Edit")

@section('content')

<div class="container-fluid">
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <div class="d-sm-flex align-items-center justify-content-between">
                <h6 class="m-0 font-weight-bold text-primary">Editar código qr</h6>
                <a href="{{route('areacode.index')}}" class="d-sm-inline-block btn btn-sm btn-primary shadow-sm"><i class="fas fa-download fa-sm text-white-50"></i> Regresar</a>
            </div>
        </div>

        <div class="card-body">
            @if (session('info'))
                <div class="alert alert-success">
                    <strong>{{session('info')}}</strong>
                </div>
            @endif
            <form action="{{route('areacode.update',$areacode->id)}}" method="POST">
                @method('PUT')
                @csrf
                <div class="mb-3">
                    <label class="small mb-1">Nombre</label>
                    <input class="form-control" name="name" value="{{$areacode->name}}">
                </div>
                <div class="mb-3">
                    <label class="small mb-1">Descripción</label>
                    <input class="form-control" name="description" value="{{$areacode->description}}">
                </div>
            <input class="btn btn-primary" type="submit" value="Update">
            </form>
        </div>
    </div>
</div>

@endsection
