@extends('layouts.yellow')
@section('content')   

    <div class="container-fluid">
        <div class="row">
            <div class="col-12 p-3">
                <div class="card">
                    <div class="card-header">
                        <h2>{{ __('create-user.create') }}</h2>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-12">
                <div style="margin-left:100px">
                    <img class="w-40" src="{{asset('img/patients.png')}}" alt="">
                </div>
            </div>
        </div>
    </div>
   
    <div class="container-fluid container-user">
        <div class="row">
            <div class="col-12">
            @if ($errors->any())
            <div class="alert alert-danger">
                <ul class="mb-0">
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
                </ul>
            </div>
            @endif

            </div>
        </div>
        <div class="row">
            <div class="col-12">
                <x-UserForm :user="$user" :people="$userProfile" :especialities="$especialities"></x-UserForm>
            </div>
        </div>
    </div>
<script src="{{ asset('js/create-user.js') }}"></script>
@endsection