@extends("Front::Layout.Panel.master")
@section('content')

    <div class="dashboard_main">
        <div class="factor_sec mx-auto">
            <div class="dashboard_main_container_style  mx-auto mb-4">
                <h5 class="dashboard_main_container_style_header">ویرایش پروفایل</h5>
                <div
                    class="alert alert-info  m-1 mb-2 @if( $errors->any() || session()->has('status')) @else d-none @endif "
                    role="alert">
                    @if($errors->any())
                        @foreach ($errors->all() as $error)
                            {{ $error }}<br>
                        @endforeach
                    @endif
                    @if(session()->has('status'))
                        {{session()->get('status')}}
                    @endif
                </div>
                <form method="post" id="editProfile" action="{{route('panel.update_profile')}}" class="mt-5 mx-auto col-md-8 d-flex mb-5 flex-wrap align-items-center justify-content-center">
                    @csrf
                    <div class="col-sm-6">
                        <div id="name" class="custom_form">
                            <div class="floating-label">
                                <input type="text" class="floating-input" value="{{old('name',auth()->user()->name)}}" id="name" name="name" placeholder=" ">
                                <label class="main">نام </label>
                            </div>
                        </div>
                    </div>
                    <div class="col-sm-6">
                        <div id="extra_number_tab" class="custom_form">
                            <div class="floating-label">
                                <input type="text" class="floating-input" value="{{old('lname',auth()->user()->lname)}}"  id="lname" name="lname" placeholder=" ">
                                <label class="main">نام خانوادگی</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-12">
                        <div id="extra_number_tab" class="custom_form">
                            <div class="floating-label">
                                <input type="email" class="floating-input" value="{{old('email',auth()->user()->email)}}"  id="email" name="email" placeholder=" ">
                                <label class="main">ایمیل</label>
                            </div>
                        </div>
                    </div>
                    <div class="col-12 d-flex justify-content-end btn_send_contact">
                        <button class="btn px-5 btn-outline-info" id="editProfileBtn">
                            ثبت
                        </button>
                    </div>
                </form>
            </div>
        </div>


    </div>

@endsection
