@extends('layouts.vendor.app')

@section('title', 'Your Information')

@push('css')
    <style>
        .contact-title {
            display: inline-block;
            padding-bottom: 9px;
            width: 170px;
            font-size: 14px;
            color: #868e96;
        }
    </style>
@endpush

@section('content')

<!-- Content Header (Page header) -->
<section class="content-header">
    <div class="container-fluid">
        <div class="row mb-2">
            <div class="col-sm-6">
                <h1>My Profile</h1>
            </div>
            <div class="col-sm-6">
                <ol class="breadcrumb float-sm-right">
                    <li class="breadcrumb-item"><a href="{{routeHelper('dashboard')}}">Home</a></li>
                    <li class="breadcrumb-item active">My Profile</li>
                </ol>
            </div>
        </div>
    </div><!-- /.container-fluid -->
</section>

<!-- Main content -->
<section class="content">

    <!-- Default box -->
    <div class="card">
        <div class="card-header">
            <div class="row">
                <div class="col-sm-6">
                    <h3 class="card-title">My Profile</h3>
                </div>
            </div>
        </div>
        
        <div class="card-body">
            <div class="row">
                <div class="col-md-12">

                    <div class="card">
                        <div class="card-header">
                            <div class="row">
                                <div class="col-sm-6">
                                    <h3 class="card-title">Your Information</h3>
                                    <a class="btn btn-primary ml-3" href="{{ route('vendor.profile.update') }}">Update Profile</a>
                                </div>
                            </div>
                        </div>
                        <div class="card-body">
                            <div class="user-profile">
                                <div class="row">
                
                                    <div class="col-lg-12">
                
                                        <h4 class="card-title">Image information</h4>
                                        <br>
                                        <div class="row">
                                            <div class="col-md-4">
                                                <div class="user-photo m-b-30">
                                                    <img src="{{Auth::user()->avatar != 'default.png' ? '/uploads/member/'.Auth::user()->avatar:'/default/user.jpg'}}" class="img-fluid" width="250px" alt="User Image">
                                                </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="user-photo m-b-30">
                                                    <img src="{{'/uploads/shop/profile/'.Auth::user()->shop_info->profile}}" class="img-fluid" alt="User Image" class="img-fluid" width="250px">
                                                </div>
                                            </div>
                                            <div class="col-md-4">
                                                <div class="user-photo m-b-30">
                                                    <img src="{{'/uploads/shop/cover/'.Auth::user()->shop_info->cover_photo}}" class="img-fluid" alt="User Image" class="img-fluid" width="250px">
                                                </div>
                                            </div>
                                        </div>
                                        

                                        <h4 class="card-title">Basic information</h4>
                                        <br>
                                        <div class="mb-1">
                                            <span class="contact-title">Username:</span>
                                            <span>{{Auth::user()->username}}</span>
                                        </div>
                                        <div class="">
                                            <span class="contact-title">Name:</span>
                                            <span>{{Auth::user()->name}}</span>
                                        </div>
                                        <div class="">
                                            <span class="contact-title">Phone:</span>
                                            <span>{{Auth::user()->phone}}</span>
                                        </div>
                                        <div class="">
                                            <span class="contact-title">Email:</span>
                                            <span>{{Auth::user()->email}}</span>
                                        </div>
                                        <div class="">
                                            <span class="contact-title">Status:</span>
                                            @if (Auth::user()->is_approved==1)
                                                <span class="badge badge-success">Active</span>
                                            @else
                                                <span class="badge badge-danger">Pending</span>
                                            @endif
                                        </div>

                                        <h4 class="card-title">Shop information</h4>
                                        <br>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Name:</span>
                                            <span>{{Auth::user()->shop_info->name}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop URL:</span>
                                            <span>{{Auth::user()->shop_info->url}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Bank Account:</span>
                                            <span>{{Auth::user()->shop_info->bank_account}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Bank Name:</span>
                                            <span>{{Auth::user()->shop_info->bank_name}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Holder Name:</span>
                                            <span>{{Auth::user()->shop_info->holder_name}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Branch Name:</span>
                                            <span>{{Auth::user()->shop_info->branch_name}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Routing:</span>
                                            <span>{{Auth::user()->shop_info->routing}}</span>
                                        </div>

                                        <h4 class="card-title">Shop Extra Information</h4>
                                        <br>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Mobile:</span>
                                            <span>{{Auth::user()->shop_info->shop_mobile}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop WhatsApp:</span>
                                            <span>{{Auth::user()->shop_info->shop_whatsapp}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Telegram:</span>
                                            <span>{{Auth::user()->shop_info->shop_telegram}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Messenger:</span>
                                            <span>{{Auth::user()->shop_info->shop_messenger}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop IMO:</span>
                                            <span>{{Auth::user()->shop_info->shop_imo}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Facebook:</span>
                                            <span>{{Auth::user()->shop_info->shop_fb}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Linkedin:</span>
                                            <span>{{Auth::user()->shop_info->shop_linkedin}}</span>
                                        </div>
                                        <div class="mb-1">
                                            <span class="contact-title">Shop Twitter:</span>
                                            <span>{{Auth::user()->shop_info->shop_twitter}}</span>
                                        </div>

                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="card-footer">
                            <div class="form-group">
                                <a href="{{routeHelper('profile/update')}}" class="mt-1 btn btn-primary">
                                    
                                    <i class="fas fa-arrow-circle-up"></i>
                                    Update
                                </a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
    <!-- /.card -->

</section>
<!-- /.content -->

@endsection