@extends('user-layouts.user_template')
@section('content')
    <div class="content-wrapper" style="min-height: 916px;">
        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                My Profile
                <!-- <small>Control panel</small> -->
            </h1>
            <ol class="breadcrumb">
                <li><a href="{{ url ('user') }}"><i class="fa fa-home"></i> Home</a></li>
                <li class="active">My 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-create-address-book">
                            <div class="box-body">
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Fullname</label>
                                            <p>{{ $array_profile_info[0]->name }}</p>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Email Address</label>
                                            <p>
                                            {{ $array_profile_info[0]->email }} 
                                            <small>
                                                @if($array_profile_info[0]->email_is_verified == 1)
                                                    <i class="fa fa-check-circle" title="verified"></i>
                                                @else
                                                    <a href="{{ url('/user/email-verify') }}"> [ verify email ]</a>
                                                @endif
                                            </small></p>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Mobile Number</label>
                                            <p>
                                            @if($array_profile_info[0]->ContactNumber != null)
                                                {{ $array_profile_info[0]->ContactNumber }}
                                            @else
                                                <i>not set</i>
                                            @endif
                                            </p>
                                        </div>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Birthday</label>
                                            <p>
                                            @if($array_profile_info[0]->Birthday != null)
                                                {{  $array_profile_info[0]->Birthday }}
                                            @else
                                                <i>not set</i>
                                            @endif
                                            </p>
                                        </div>
                                    </div>
                                    <div class="col-md-4">
                                        <div class="form-group">
                                            <label>Gender</label>
                                            <p>
                                            @if($array_profile_info[0]->Gender != null)
                                                {{  $array_profile_info[0]->Gender }}
                                            @else
                                                <i>not set</i>
                                            @endif
                                            </p>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="box-footer">
                                <a href="{{ url('user/profile/edit') }}" type="submit" class="btn btn-primary btn-custom-save">Edit</a>
                                <a href="{{ url('user/profile/change-password') }}" type="submit" class="btn btn-danger btn-custom-save">Change Password</a>
                            </div>
                        </form>
                    <div>
                </div>
            </div>
        </section>
    <!-- /.content -->
    </div>
@endsection
