@extends('layout.app')


@section('content')


    <form action="{{ route('branch.update', $list->id) }}" method="POST">
        @method('PUT')
        @csrf
        <div class="card">
            <div class="card-body">

            <div class="row">
                <div class="form-group col-md-4">
                    <label for="name" class="">
                        Name*
                    </label>

                    <input type="text" name="name" id="name" value="{{ $list->name }}" class="form-control"
                        placeholder=" Name" autocomplete="off">
                    @error('name')
                        <div class="text-red-500 mt-2 text-sm">
                            {{ $message }}
                        </div>
                    @enderror
                </div>


                <div class="form-group col-md-4">
                    <label for="contact_no" class="">
                        Contact
                    </label>

                    <input type="text" name="contact_no" id="contact_no" value="{{ $list->contact_no }}"
                        class="form-control" placeholder=" contact_no" autocomplete="off">
                    @error('contact_no')
                        <div class="text-red-500 mt-2 text-sm">
                            {{ $message }}
                        </div>
                    @enderror
                </div>



                <div class="form-group col-md-4">
                    <label for="address" class="">
                        Address
                    </label>

                    <input type="text" name="address" id="address" value="{{ $list->address }}" class="form-control"
                        placeholder=" address" autocomplete="off">
                    @error('address')
                        <div class="text-red-500 mt-2 text-sm">
                            {{ $message }}
                        </div>
                    @enderror
                </div>
            </div>
                <div class="form-group">
                    <div class="row float-right">
                        <div>
                            <a class="btn btn-primary" href="{{ url()->previous() }}">Back</a>
                        </div>
                        <div>
                            <button type="submit" class="ml-2 btn btn-success">
                                Update
                            </button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </form>

    <div class="p-5"></div>
@endsection
