@extends('layouts.config_dashboard.app')

@section('content')
    <div class="container-fluid mt-4">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('Company.store') }}" method="post">
                            @csrf
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">ICE *:</label>
                                <input type="text" id="ice" name="ice" value="{{ old('ice') }}"
                                    class="form-control @error('ice') is-invalid  @enderror">
                                @error('ice')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Compagnie *:</label>
                                <input type="text" id="company" name="company" value="{{ old('company') }}"
                                    class="form-control @error('company') is-invalid  @enderror">
                                @error('company')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Email *:</label>
                                <input type="email"  id="email" name="email" value="{{ old('email') }}"
                                    class="form-control @error('email') is-invalid  @enderror">
                                @error('email')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Telephone :</label>
                                <input type="text" id="phone" name="phone" value="{{ old('phone') }}" pattern="(\+212|0)([ \-_/]*)(\d[ \-_/]*){9}"
                                    class="form-control @error('phone') is-invalid  @enderror">
                                @error('phone')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Email PRO *:</label>
                                <input type="email_pro"  id="email_pro" name="email_pro" value="{{ old('email_pro') }}"
                                    class="form-control @error('email_pro') is-invalid  @enderror">
                                @error('email_pro')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Password *:</label>
                                <input type="password"  id="password" name="password" value="{{ old('password') }}"
                                    class="form-control @error('password') is-invalid  @enderror">
                                @error('password')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Adresse :</label>
                                <input type="text"  id="adress" name="adress" value="{{ old('adress') }}"
                                    class="form-control @error('adress') is-invalid  @enderror">
                                @error('adress')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class="mr-3 mt-3">
                                <button class="btn btn-primary" type="submit">Créer</button>
                            </div>
                        </form>
                    </div>
                </div>

            </div>
        </div>
    </div>
@endsection
