<x-app-layout>

    <div class="col-12">
        <div class="card">
            <div class="card-body">
                <x-form action="{{ route('employers.update',['employer'=>$user->id] ) }}" enctype="multipart/form-data" method="POST">
                    @csrf
                    @method('PUT')
                    <div class="card">
                        <div class="card-body">
                            <div class="row">
                                <div class="col-md-6">
                                    <div class="card">
                                        <div class="card-body">
                                            <h5 class="dividing">{{ __('General Info') }}</h5>
                                            <div class="row mt-3">
                                                <x-form.input name="name" value="{{ $user->name }}" classGroup="col-md-6 required" />
                                                <x-form.input name="email" value="{{ $user->email }}" classGroup="col-md-6 required" />
                                            </div>
                                        </div>
                                    </div>
                                    <div class="card">
                                        <div class="card-body">
                                            <x-form.input name="password" type="password" />
                                            <x-form.switch name="status" value="{{ $user->status }}" />
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-6">
                                    <div class="card">
                                        <div class="card-body">
                                            <h5 class="dividing">{{ __('Additional information') }}</h5>
                                            <div class="mt-3">
                                                <x-form.input name="phone" value="{{ $user->phone }}" classGroup="" />
                                                <x-form.select name="locale" value="{{ $user->locale }}" :items="[['value'=>'ar','label'=>'العربية'],['value'=>'en','label'=>'English']]" />
                                                <x-form.upload name="image" value="{{ $user->image }}" label="Avatar" />
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card-footer">
                            <x-button class="btn btn-primary" > {{ __('Save') }}  </x-button>
                        </div>
                    </div>
                </x-form>
            </div>
        </div>
    </div>


</x-app-layout>