@extends("admin/layouts.master-soyuz") @section('title','Admin Dashboard | ') @section('stylesheet') @endsection @section('title','Admin Dashboard |') @section("body") @can('dashboard.states')

Dashboard

{{$user}}

Total Users

More info

{{$order}}

Total Orders

More info

{{ $totalcancelorder }}

Total Cancelled Orders

More info

{{ $totalproducts }}

Total Products

More info

{{$store}}

Total Stores

More info

{{$category}}

Total Categories

More info

{{$coupan}}

Total Coupons

More info

{{$faqs}}

Total FAQ's

More info
@if($genrals_settings->vendor_enable == 1)

{{ $pending_payout }}

Pending Payouts

See all

{{ $totalsellers }}

Total sellers (active)

See all
@endif

{{ $total_testinonials }}

Total Testimonials (active)

See all

{{ $total_specialoffer }}

Total Special offers (active)

See all

{{ $total_hotdeals }}

Total Hotdeals (active)

See all
{!! $orderchart->container() !!}

Visitors

{!! $userchart->container() !!}
@if($dashsetting->lat_ord ==1)

Latest Orders

@forelse($latestorders as $key=> $order) @empty @endforelse
# Order ID Customer name Total Qty Total Price Order Date
{{$key+1}} #{{ $inv_cus->order_prefix.$order->order_id }} {{ $order->user->name }} {{ $order->qty_total }} {{ $order->order_total }} {{ date('d-M-Y',strtotime($order->created_at)) }}
{{ __("No orders found !") }}
@if(count($latestorders)) @endif
@endif @if($genrals_settings->vendor_enable == 1) @if($dashsetting->rct_str==1)

Recent Store Requests

@forelse($storerequest as $key => $store) @empty @endforelse
# Store Name Buisness Email Request By
{{$key + 1}} {{ $store->name }} {{ $store->email }} {{ $store->owner }}
{{ __("No store request yet !") }}
@if(count($storerequest)) @endif
@endif @endif @if($dashsetting->fb_wid ==1 || $dashsetting->tw_wid==1 || $dashsetting->insta_wid==1)

Social States

@php $connected = @fsockopen("www.facebook.com", 80); @endphp
@if($dashsetting->fb_wid ==1)
Page Likes @if($dashsetting->fb_page_id != '' || $dashsetting->fb_page_token != '') @if($connected) @php $fb_page = "'".$dashsetting->fb_page_id."'"; $access_token = "'".$dashsetting->fb_page_token."'"; $url = 'https://graph.facebook.com/v3.2/'.$fb_page.'?fields=fan_count&access_token='.$access_token; $curl = curl_init($url); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); $result = curl_exec($curl); curl_close($curl); if($result) { // if valid json object $result = json_decode($result); // decode json object if(isset($result->fan_count)) { // get likes from the json object echo ''.$result->fan_count.''; } } else{ echo 'Page is not a valid FB Page'; } @endphp @else

Connection Problem !

@endif @else

Set up your facebook page key in Admin Dashboard Setting !

@endif
@endif @if($dashsetting->tw_wid==1)
Followers @if($dashsetting->tw_username != '') @if($connected) @else

Connection Problem !

@endif @else

Set up Twitter username in Admin Dashboard Setting !

@endif
@endif @if($dashsetting->insta_wid==1)
Followers @if($dashsetting->inst_username !='') @if($connected) @else

Connection Problem !

@endif @else

Set up Instagram username in
Admin Dashboard Setting !

@endif
@endif
@endif
@if($dashsetting->rct_pro ==1)

Recently Added Products

@endif @if($dashsetting->rct_cust ==1)

Recent Users

{{ $registerTodayUsers }} members today
    @foreach($users = App\User::where('role_id','!=','a')->orderBy('id','DESC')->take($dashsetting->max_item_cust)->get() as $user)
  • @if($user->image !="" && file_exists(public_path().'/images/user/'.$user->image)) @else @endif {{ $user->name }} {{ date('Y-m-d',strtotime($user->created_at)) }}
  • @endforeach
@endif
{!! $piechart->container() !!}
@else
@if($time < "19") @else @endif
{{ $day }} ! {{ auth()->user()->name }} {{ $quote }}
@endcan @endsection @section('custom-script') {!! $userchart->script() !!} {!! $piechart->script() !!} {!! $orderchart->script() !!} @endsection