@extends('template.layout')
@section('style')
@endsection

@section('content')
    <div class="container">


        <div class="row">



            <div class="col-md-8">

                @if ($errors->any())
                    <div class="alert alert-danger" role="alert">
                      
                         <ul class="list-unstyled m-0 p-0">
                    @foreach ($errors->all() as $error)
                        <li>
                            {{ $error }}
                        </li>
                    @endforeach

                </ul>
                    </div>
                @endif




                <div class="card">
                    <div class="card-header"><strong>Create Branch</strong></div>
                    <div class="card-body">
<a class="btn btn btn-outline-info mb-3" href="{{url()->previous()}}"><i class="bi bi-skip-backward-circle pr-1"></i>Back</a>

                        <form method="POST" action="{{ url('branch/store') }}">
                            @csrf
                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label">Name : </label>
                                <div class="col-sm-8">
                                    <input type="text" name="name" class="form-control" value="{{old('name')}}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label">Contact (Mobile) : </label>
                                <div class="col-sm-8">
                                    <input type="text" name="mobile" class="form-control" value="{{old('mobile')}}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label">Contact (Land) : </label>
                                <div class="col-sm-8">
                                    <input type="text" name="land" class="form-control" value="{{old('land')}}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label">Email : </label>
                                <div class="col-sm-8">
                                    <input type="text" name="email" class="form-control" value="{{old('email')}}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label">Address : </label>
                                <div class="col-sm-8">
                                    <textarea class="form-control" name="address" id="" cols="30" rows="4">{{old('address')}}</textarea>
                                </div>
                            </div>



                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label">Note : </label>
                                <div class="col-sm-8">
                                    <textarea class="form-control" name="note" id="" cols="30" rows="4"> {{old('note')}}</textarea>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="name" class="col-sm-4 col-form-label"> </label>
                                <div class="col-sm-8">
                                    <button class="btn btn-primary btn-block" type="submit">Save</button>
                                </div>
                            </div>


                        </form>
                    </div>
                </div>



            </div>
            <div class="col-md-4"></div>
        </div>



    </div>
@endsection

@section('script')
@endsection
