
<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta http-equiv="X-UA-Compatible" content="ie=edge">
        <title>Phone Book App</title>
        <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet"
            integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js"
            integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous">
        </script>
    </head>
    <body>
        <div class="container mt-5">
        <a href="<?php echo e(route('home')); ?>" class="btn btn-primary">Retour</a>

            <form method="POST" action="/edit/<?php echo e($contact->id); ?>">
                <?php echo csrf_field(); ?>
                <div class="form-group mb-2">
                    <label for="exampleInputPassword1">Nom Prénom</label>
                    <input type="text" class="form-control" name="name" placeholder="Name" value="<?php echo e($contact->name); ?>">
                </div>
                <div class="form-group mb-2">
                    <label for="exampleInputPassword1">Numéro de téléphone</label>
                    <input type="text" class="form-control" name="phone" placeholder="Phone" value="<?php echo e($contact->phone); ?>">
                </div>
                <div class="form-group mb-2">
                    <label for="exampleInputEmail1">Adresse</label>
                    <input type="text" class="form-control" name="email" placeholder="Enter email" value="<?php echo e($contact->email); ?>">
                </div>


                <button type="submit" class="btn btn-primary">Mise à jour</button>
                

            </form>
        </div>
    </body>
</html>
<?php /**PATH C:\Users\Toby\Desktop\contacts\resources\views/edit.blade.php ENDPATH**/ ?>