@extends(adminlte::page)

@section('content_header')
<h1>Modifica il conto</h1>
@endsection

@section('content')
<div class="container mt-3">
    <form action="{{ route('conti.update', $conto->id) }}" method="POST">
        @csrf
        @method('PUT')
        <div class="form-group">
            <label for="nome">Nome</label>
            <input type="text" class="form-control" id="nome" name="nome" value="{{ $conto->nome }}">
        </div>
        <div class="form-group">
            <label for="iban">IBAN</label>
            <input type="text" class="form-control" id="iban" name="iban" value="{{ $conto->iban }}">
        </div>
        <div class="form-group">
            <label for="saldo">Saldo</label>
            <input type="text" class="form-control" id="saldo" name="saldo" value="{{ $conto->saldo }}">
        </div>
        <button type="submit" class="btn btn-primary">Salva</button>
    </form>
@endsection