98 lines
3.9 KiB
PHP
98 lines
3.9 KiB
PHP
@extends('user-layouts.user_template')
|
||
@section('content')
|
||
<div class="content-wrapper" style="min-height: 916px;">
|
||
<!-- Content Header (Page header) -->
|
||
<section class="content-header">
|
||
<h1>
|
||
Dashboard
|
||
<small>Control panel</small>
|
||
</h1>
|
||
<ol class="breadcrumb">
|
||
<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li>
|
||
<li class="active">Dashboard</li>
|
||
</ol>
|
||
</section>
|
||
|
||
<!-- Main content -->
|
||
|
||
<section class="content">
|
||
@if(Auth::user()->email_is_verified == "0")
|
||
<div class="alert alert-warning alert-dismissible">
|
||
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
|
||
<h4><i class="icon fa fa-check"></i> To do!</h4>
|
||
Please verify your Email Address. <a href="{{ url('user/email-verify') }}">Click here</a>
|
||
</div>
|
||
@endif
|
||
|
||
@if ($data['isStoreOwner'])
|
||
<div class="row">
|
||
<div class="col-lg-3 col-xs-6">
|
||
<!-- small box -->
|
||
<div class="small-box bg-aqua">
|
||
<div class="inner">
|
||
<h3>{{ $data['store_order'] or 0 }}</h3>
|
||
<p>Total Item Ordered</p>
|
||
</div>
|
||
<div class="icon">
|
||
<i class="ion ion-bag"></i>
|
||
</div>
|
||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||
</div>
|
||
</div>
|
||
<!-- ./col -->
|
||
<div class="col-lg-3 col-xs-6">
|
||
<!-- small box -->
|
||
<div class="small-box bg-green">
|
||
<div class="inner">
|
||
<h3>{{ number_format($data['store_income'], 2) }}</h3>
|
||
|
||
<p>Store Income</p>
|
||
</div>
|
||
<div class="icon">
|
||
<i class="ion ion-stats-bars"></i>
|
||
</div>
|
||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||
</div>
|
||
</div>
|
||
<!-- ./col -->
|
||
<div class="col-lg-3 col-xs-6">
|
||
<!-- small box -->
|
||
<div class="small-box bg-yellow">
|
||
<div class="inner">
|
||
<h3>{{ $data['store_product_count'] or 0 }}</h3>
|
||
|
||
<p>Total Products</p>
|
||
</div>
|
||
<div class="icon">
|
||
<i class="ion ion-person-add"></i>
|
||
</div>
|
||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||
</div>
|
||
</div>
|
||
<!-- ./col -->
|
||
<div class="col-lg-3 col-xs-6">
|
||
<!-- small box -->
|
||
<div class="small-box bg-red">
|
||
<div class="inner">
|
||
<h3>{{ $data['store_published_product'] or 0 }}</h3>
|
||
|
||
<p>Total Published Product</p>
|
||
</div>
|
||
<div class="icon">
|
||
<i class="ion ion-key"></i>
|
||
</div>
|
||
<a href="#" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a>
|
||
</div>
|
||
</div>
|
||
<!-- ./col -->
|
||
</div>
|
||
@else
|
||
<div class="text-center" id="homepage-logo">
|
||
<img src="{{asset('/public/images/logo.png')}}" style="height: 200px;" class="img img-responsive" />
|
||
</div>
|
||
@endif
|
||
</section>
|
||
<!-- /.content -->
|
||
</div>
|
||
@endsection
|