@extends('user-layouts.user_template')
@section('content')
    <div class="content-wrapper" style="min-height: 916px;">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                Edit Profile
                <!-- <small>Control panel</small> -->
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
                <li><a href="{{ url ('user/profile') }}"><i class="fa fa-user"></i> My Profile</a></li>
                <li class="active">Edit Profile</li>
               
            </ol>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <div class="box box-primary">
                        <div class="box-header with-border">
                            
                            <h3 class="box-title">
                                Personal Info
                            </h3>
                        </div>
                        <form role="form" id="frm-edit-profile">
                            <div class="box-body">
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Fullname</label>
                                            <input type="text" class="form-control" name="fullname" placeholder="Fullaname" value="{{  $array_profile_info[0]->name }}">
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Email Address</label>
                                            <input type="email" class="form-control" name="email" placeholder="Please enter your email address" value="{{ $array_profile_info[0]->email }}"> 
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Other Email Address</label>
                                            <input type="email" class="form-control" name="other_email" placeholder="Please enter your other email address" value="{{ $array_profile_info[0]->other_email }}"> 
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Mobile Number</label>
                                            <p>
                                            <input type="text" class="form-control" name="contactnumber" placeholder="Please enter your mobile number" value="{{ $array_profile_info[0]->ContactNumber }}">
                                            </p>
                                        </div>
                                    </div>
                        
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Birthday</label>
                                            
                                            <div class="input-group">
                                                <input type="text" id="datepicker_bday" name="birthday" placeholder="Please enter your birthdate" class="form-control" value="{{ date('m/d/Y', strtotime($array_profile_info[0]->Birthday)) }}"><span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Gender</label>
                                            <select class="form-control" name="gender">
                                                <option value="Male" @if($array_profile_info[0]->Gender == "Male") selected  @endif>Male</option>
                                                <option value="Female" @if($array_profile_info[0]->Gender == "Female") selected  @endif>Female</option>
                                            </select>
                                            <p>
                                           
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="box-footer">
                                <button type="submit" class="btn btn-primary btn-custom-save">update</button>
                            </div>
                        </form>
                    <div>
                </div>
            </div>
        </section>
    <!-- /.content -->
    </div>
@endsection
