Current File : /home/tradevaly/new.tradevaly.com.bd/resources/views/user/pages/index.blade.php
@extends('user.ayaan.master')

@section('title') Dashboard @endsection

@section('content')

    @component('components.breadcrumb')
        @slot('li_1') Dashboards @endslot
        @slot('title') Dashboard @endslot
    @endcomponent
<div class="row">
    
    <div class="col-xl-12">
        <div class="row">
            @if(Auth::user()->type == 'buyer')
            <div class="col-xl-12">
            <div class="row">
                <div class="col-xxl-3 col-sm-6">
                    <div class="card bg-primary mini-stats-wid">
                        <a href="{{ route('admin.users.all') }}" class="item-link"></a>
                        <div class="card-body">
                            <div class="media">
                                <div class="media-body">
                                    <p class="fw-medium text-white">@lang('Total Seller')</p>
                                    <h4 class="mb-0 text-white">{{ \App\Models\User::where('type', 'seller')->count() }}</h4>
                                </div>

                                <div class="mini-stat-icon avatar-sm rounded-circle bg-primary align-self-center">
                                    <span class="avatar-title">
                                        <i class="fas fa-users font-size-24"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                    
                    </div>
                </div>
                <div class="col-xxl-3 col-sm-6">
                    <div class="card bg-success mini-stats-wid">
                        <a href="{{ route('admin.users.active') }}" class="item-link"></a>
                        <div class="card-body">
                            <div class="media">
                                <div class="media-body">
                                    <p class="text-white fw-medium">@lang('Total Buyer')</p>
                                    <h4 class="mb-0 text-white">{{ \App\Models\User::where('type', 'buyer')->count() }}</h4>
                                </div>

                                <div class="avatar-sm rounded-circle bg-primary align-self-center mini-stat-icon">
                                    <span class="avatar-title rounded-circle bg-success">
                                        <i class="fas fa-user-check font-size-24"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xxl-3 col-sm-6">
                    <div class="card bg-warning mini-stats-wid">
                         <a href="{{ route('admin.users.email.unverified') }}" class="item-link"></a>
                        <div class="card-body">
                            <div class="media">
                                <div class="media-body">
                                    <p class="text-white fw-medium">@lang('Free Package User')</p>
                                    <h4 class="mb-0 text-white">{{ \App\Models\User::where('package_id', 0)->count() }}</h4>
                                </div>

                                <div class="avatar-sm rounded-circle bg-primary align-self-center mini-stat-icon">
                                    <span class="avatar-title rounded-circle bg-warning">
                                        <i class="fas fa-envelope font-size-24"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                 <div class="col-xxl-3 col-sm-6">
                    <div class="card bg-danger mini-stats-wid">
                         <a href="{{ route('admin.users.mobile.unverified') }}" class="item-link"></a>
                        <div class="card-body">
                            <div class="media">
                                <div class="media-body">
                                    <p class="text-white fw-medium">@lang('Premium Package User')</p>
                                    <h4 class="mb-0 text-white">{{ \App\Models\User::where('package_id', '!=', 0)->count() }}</h4>
                                </div>

                                <div class="avatar-sm rounded-circle bg-primary align-self-center mini-stat-icon">
                                    <span class="avatar-title rounded-circle bg-danger">
                                        <i class="fas fa-comment-slash font-size-24"></i>
                                    </span>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <!-- end row -->

        </div>
            <div class="col-xxl-3 col-sm-6">
                <div class="card bg-primary mini-stats-wid">
                    <a href="{{ route('admin.users.all') }}" class="item-link"></a>
                    <div class="card-body">
                        <div class="media">
                            <div class="media-body">
                                <p class="fw-medium text-white">@lang('Buy Offer')</p>
                                <h4 class="mb-0 text-white">{{$buyoffer}}</h4>
                            </div>

                            <div class="mini-stat-icon avatar-sm rounded-circle bg-primary align-self-center">
                                <span class="avatar-title">
                                    <i class="fas fa-users font-size-24"></i>
                                </span>
                            </div>
                        </div>
                    </div>
                
                </div>
            </div>
            @else
        <div class="col-xl-12">
            <div class="row">
                @include('user.pages.sellerDashboard')
                
            </div>
            <!-- end row -->

        </div>
            @endif
            
        </div>
        <!-- end row -->
    </div>
    
    
</div>
<div class="customer-service col-lg-12">
                <div class="customer-body">
                    <div class="row">
                        <div class="col-xxl-7 col-sm-7">
                            <h3>Customer Services</h3>
                            <h5>Get in Touch with Your Account Manager!</h5>
                            <ul>
                                    <li><a href="mailto:{{ settings()->email }}"><i class="fa fa-envelope" aria-hidden="true"></i>{{ settings()->email }}</a></li>
                                    <li><a href="tel:14695515690"><i class="fa fa-phone-square" aria-hidden="true"></i>{{ settings()->number }}</a></li>
                            </ul>
                        <div class="customer-footer">
                            <ul>
                                <li><a href="{{ url('user/ticket/create') }}">New Ticket</a></li>
                                <li><a href="{{ url('user/ticket') }}">Ticket History</a></li>
                            </ul>
                        </div>
                       </div>
                        <div class="col-xxl-5 col-sm-5">
                            <a href="javascript:"class="tawk__to__popup"><img src="https://static.eworldtrade.com/v7/_root_/2K19/images/member/dashboardbanner2.png" alt="Customer Service" class="img-responsive"></a>
                        </div>
                    </div>
                </div>
            </div>
@endsection

@section('script')
    <!-- apexcharts -->
    <script src="{{ asset('/assets/libs/apexcharts/apexcharts.min.js') }}"></script>

    <!-- dashboard init -->
    <script src="{{ asset('/assets/js/pages/dashboard.init.js') }}"></script>
@endsection










{{-- @extends('user.layouts.app')

@push('style')
    
@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
      @if(Auth::user()->type == 'buyer')
    <div class="col-lg-3 col-md-6 col-sm-6">
      <div class="card card-stats">
        <div class="card-header card-header-warning card-header-icon">
          <div class="card-icon">
            <i class="material-icons">weekend</i>
          </div>
          <p class="card-category">Buy Offer</p>
          <h3 class="card-title">{{$buyoffer}}</h3>
        </div>
        <div class="card-footer">
          <div class="stats">
            <i class="material-icons text-danger">warning</i>
           My Buy Offer...
          </div>
        </div>
      </div>
    </div>
    @else
    <div class="col-lg-6 col-md-6 col-sm-6">
      <div class="card card-stats">
        <div class="card-header card-header-warning card-header-icon">
          <div class="card-icon">
            <i class="material-icons">weekend</i>
          </div>
          <p class="card-category">Products</p>
          <h3 class="card-title">{{$products}}</h3>
        </div>
        <div class="card-footer">
          <div class="stats">
            <i class="material-icons text-danger">warning</i>
           My Products...
          </div>
        </div>
      </div>
    </div>
    
    @endif
    <div class="col-lg-6 col-md-6 col-sm-6">
      <div class="card card-stats">
        <div class="card-header card-header-rose card-header-icon">
          <div class="card-icon">
            <i class="material-icons">equalizer</i>
          </div>
          <p class="card-category">Pending Messages</p>
          <h3 class="card-title">{{$messages}}</h3>
        </div>
        <div class="card-footer">
          <div class="stats">
            <i class="material-icons">local_offer</i> Tracked from Google Analytics
          </div>
        </div>
      </div>
    </div>
    
  </div>
</div>
@stop

@push('script')
    
@endpush

--}}