@extends("admin/layouts.master-soyuz") @section('title','Admin Dashboard | ') @section("body") @component('admin.component.breadcumb') @slot('heading') {{ __('Dashboard') }} @endslot @endcomponent

{{$user}}

Total Users

{{$order}}

Total Orders

{{ $totalcancelorder }}

Total Cancelled Orders

{{ $totalproducts }}

Total Artworks

{{$store}}

Total Art Galleries

{{$category}}

Total Categories

{{$coupan}}

Total Coupons

{{$faqs}}

Total FAQ's

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

{{ $pending_payout }}

Pending Payouts

{{ $totalsellers }}

Total Artists (active)

@endif

{{ $total_testinonials }}

Total Testimonials (active)

{{ $total_specialoffer }}

Total Special offers (active)

{{ $total_hotdeals }}

Total Hotdeals (active)

@if($dashsetting->fb_wid ==1 || $dashsetting->tw_wid==1 || $dashsetting->insta_wid==1) @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
{!! $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 !") }}
@endif
{!! $piechart->container() !!}
@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 !") }}
@endif @endif @if($dashsetting->rct_pro ==1)
Recently Added Artworks
@foreach($products->take($dashsetting->max_item_ord) as $pro)
@if($pro['thumbnail'] != '') {{ __( @endif
{{ substr($pro['productname'],0,50)}}
{{ substr($pro['detail'],0,100)}}{{strlen($pro['detail'])>100 ? "..." : "" }}
{{ $pro['price_in'] }} {{ $pro['price'] }}
@endforeach
@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 }}

{{ $user->email }}

{{ date('Y-m-d',strtotime($user->created_at)) }}

@endforeach
@endif
@endsection @section('custom-script') {!! $userchart->script() !!} {!! $piechart->script() !!} {!! $orderchart->script() !!} @endsection