@extends('layout.main')
@section('title') @if( ! empty($title)) {{ $title }} | @endif @parent @endsection

@section('main')

<div id="wrapper">

    @include('admin.sidebar_menu')

    <div id="page-wrapper">
        @if( ! empty($title))
        <div class="row">
            <div class="col-lg-12">
                <h1 class="page-header"> {{ $title }} </h1>
            </div> <!-- /.col-lg-12 -->
        </div> <!-- /.row -->
        @endif

        @include('admin.flash_msg')

        <div class="row">
            <div class="col-xs-12">
                <div class="profile-avatar">
                    <img src="{{ $user->get_gravatar(150) }}" class="img-thumbnail img-circle" />
                </div>

                <table class="table table-bordered table-striped">

                    <tr>
                        <th>@lang('app.name')</th>
                        <td>{{ $user->name }}</td>
                    </tr>
                    <!--<tr>-->
                    <!--    <th>@lang('app.user_name')</th>-->
                    <!--    <td>{{ $user->user_name }}</td>-->
                    <!--</tr>-->
                    <tr>
                        <th>@lang('app.email')</th>
                        <td>{{ $user->email }}</td>
                    </tr>
                    <!--<tr>-->
                    <!--    <th>@lang('app.gender')</th>-->
                    <!--    <td>{{ ucfirst($user->gender) }}</td>-->
                    <!--</tr>-->
                    <!--<tr>-->
                    <!--    <th>@lang('app.mobile')</th>-->
                    <!--    <td>{{ $user->mobile }}</td>-->
                    <!--</tr>-->
                    <tr>
                        <th>@lang('app.phone')</th>
                        <td>{{ $user->phone }}</td>
                    </tr>
                    <tr>
                        <th>@lang('app.address')</th>
                        <td>{{ $user->address }}</td>
                    </tr>

                    <!--<tr>-->
                    <!--    <th>@lang('app.country')</th>-->
                    <!--    <td>-->
                    <!--        @if($user->country)-->
                    <!--        {{ $user->country->country_name }}-->
                    <!--        @endif-->
                    <!--    </td>-->
                    <!--</tr>-->
                    <tr>
                        <th>@lang('app.website')</th>
                        <td>{{ $user->website }}</td>
                    </tr>
                    <tr>
                        <th>@lang('app.created_at')</th>
                        <td>{{ $user->signed_up_datetime() }}</td>
                    </tr>
                    <tr>
                        <th>@lang('app.status')</th>
                        <td>{{ $user->status_context() }}</td>
                    </tr>
                    @if($user->user_type == 'agent')
                    @if($Agent_legalities->agent_certificate != NULL)
                    <tr>
                        <th>Ziea Badge</th>
                        <td>
                            @if($user->zeia_badge == 1)
                            <span style="color:yellowgreen">APPROVED</span>
                            @else
                            <span style="color:orange">PENDING</span>
                            @endif
                        </td>
                    </tr>
                    
                    
                    <tr>
                        <th>@lang('Membership Number')</th>
                        <td>{{ $Agent_legalities->membership_num }}</td>
                    </tr>
                    <tr>
                        <th>@lang('Membership Name')</th>
                        <td>{{ $Agent_legalities->membership_name }}</td>
                    </tr>
                    <tr>
                        <th>@lang('Certificate')</th>
                        <td>
                            <a href="/kupeza/uploads/agent-certificates/{{ $Agent_legalities->agent_certificate }}"
                                target="_blank">Download</a>
                        </td>
                    </tr>
                    @else
                    <tr>
                        <th>Ziea Badge</th>
                        <td>
                            Upload A Certificate <a href={{route("profit_edit")}}>Here</a>
                        </td>
                    </tr>
                    @endif
                    @endif
                </table>

                <a href="{{ route('profile_edit') }}"><i class="fa fa-pencil-square-o"></i> @lang('app.edit') </a>

            </div>
        </div>


    </div> <!-- /#page-wrapper -->




</div> <!-- /#wrapper -->
@endsection

@section('page-js')

@endsection