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

{{$user}}

{{ __('Total Users') }}

{{$order}}

{{ __('Total Orders') }}

{{ $totalcancelorder }}

{{ __('Total Cancelled Orders') }}

{{ $totalproducts }}

{{ __('Total Products') }}

{{$store}}

{{ __('Total Stores') }}

{{$category}}

{{ __('Total Categories') }}

{{$coupan}}

{{ __("Total Coupons") }}

{{$faqs}}

{{ __('Total FAQ\'s') }}

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

{{ $pending_payout }}

{{ __('Pending Payouts') }}

{{ $totalsellers }}

{{ __('Total sellers (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)) { 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 products')}}
@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
@else
@if($time < "19") @else @endif
{{ $day }} ! {{ auth()->user()->name }} {{ $quote }}
@endcan
@endsection @section('custom-script') {!! $userchart->script() !!} {!! $piechart->script() !!} {!! $orderchart->script() !!} @endsection