Files
crewsportswear/resources/views/user-layouts/index.blade.php
Frank John Begornia ab0d370225
All checks were successful
Deploy Production (crewsportswear.com) / deploy (push) Successful in 2m0s
Remove commented-out sales chart section from user dashboard
2025-12-31 02:20:31 +08:00

99 lines
3.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@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="./user/store-orders" 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-cash"></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-ios-pricetags"></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-ios-pricetags-outline"></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('/images/logo.png')}}" style="height: 200px;" class="img img-responsive" />
</div>
@endif
</section>
<!-- /.content -->
</div>
@endsection