@extends('layout.app')


@section('content')


    <form action="{{ route('supplier.store') }}" method="POST">

        @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="{{ old('name') }}" class="form-control"
                        placeholder=" Name" autocomplete="off" autofocus>
                    @error('name')
                        <div class="alert alert-danger">
                            {{ $message }}
                        </div>
                    @enderror
                </div>


                <div class="form-group col-md-4">
                    <label for="email" class="">
                        Email*
                    </label>

                    <input type="text" name="email" id="email" value="{{ old('email') }}" class="form-control"
                        placeholder=" Email" autocomplete="off" autofocus>
                    @error('email')
                        <div class="alert alert-danger">
                            {{ $message }}
                        </div>
                    @enderror
                </div>



                <div class="form-group col-md-4">
                    <label for="mobile" class="">
                        Mobile*
                    </label>

                    <input type="text" name="mobile" id="mobile" value="{{ old('mobile') }}" class="form-control"
                        placeholder=" mobile" autocomplete="off" autofocus>
                    @error('mobile')
                        <div class="alert alert-danger">
                            {{ $message }}
                        </div>
                    @enderror
                </div>


                <div class="form-group col-md-4">
                    <label for="alt_mobile" class="">
                        Alt Mobile*
                    </label>

                    <input type="text" name="alt_mobile" id="alt_mobile" value="{{ old('alt_mobile') }}"
                        class="form-control" placeholder=" alt_mobile" autocomplete="off" autofocus>
                    @error('alt_mobile')
                        <div class="alert alert-danger">
                            {{ $message }}
                        </div>
                    @enderror
                </div>


                <div class="form-group col-md-4">
                    <label for="contact_person_name" class="">
                        Contact Person Name*
                    </label>

                    <input type="text" name="contact_person_name" id="contact_person_name"
                        value="{{ old('contact_person_name') }}" class="form-control" placeholder=" contact_person_name"
                        autocomplete="off" autofocus>
                    @error('contact_person_name')
                        <div class="alert alert-danger">
                            {{ $message }}
                        </div>
                    @enderror
                </div>

                <div class="form-group col-md-4">
                    <label for="contact_person_mobile" class="">
                        Contact Person Mobile*
                    </label>

                    <input type="text" name="contact_person_mobile" id="contact_person_mobile"
                        value="{{ old('contact_person_mobile') }}" class="form-control"
                        placeholder=" contact_person_mobile" autocomplete="off" autofocus>
                    @error('contact_person_mobile')
                        <div class="alert alert-danger">
                            {{ $message }}
                        </div>
                    @enderror
                </div>
            </div>

                <div class="form-group">
                    <button type="submit" class="btn btn-success float-right">
                        Save
                    </button>
                </div>
            </div>
        </div>
    </form>

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

@endsection
