@extends('Layouts.adminLayout') @section('title') {{__('Dashboard')}} @endsection @section('content') @php $arrayPermD=\App\Models\User::getArrayRolePerm(); @endphp
@if(Auth::user()->type==0 or in_array('Admin.blogs.index',$arrayPermD))
{{$data['blog']}}
{{__('Blogs')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.comments.index',$arrayPermD))
{{$data['comment']}}
{{__('Comment')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.users.index',$arrayPermD))
{{$data['allUsers']}}
{{__('Users')}}
@endif
{{$data['sumPageViews']}}
{{__('Visit')}}
@if(Auth::user()->type==0 or in_array('Admin.products.index',$arrayPermD))
{{$data['product']}}
{{__('Product')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.categorys.index',$arrayPermD))
{{$data['category']}}
{{__('Category')}}
@endif @if(Auth::user()->type==0)
{{number_format($data['sumTotalPay'])}} {{$prefix}}
{{__('Total Sales')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.orders.index',$arrayPermD))
{{$data['orderŲŽAll']}}
{{__('Order')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.orders.new',$arrayPermD))
{{$data['orderNew']}}
{{__('New Order')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.orders.confirmed',$arrayPermD))
{{$data['orderConfirm']}}
{{__('Confirmed Orders')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.orders.posted',$arrayPermD))
{{$data['orderSend']}}
{{__('Order Send')}}
@endif @if(Auth::user()->type==0 or in_array('Admin.orders.delivered',$arrayPermD))
{{$data['orderDelivered']}}
{{__('Order Delivered')}}
@endif
@if(Auth::user()->type==0)

{{__('Monthly Sales Report')}}

{{__('Total Sales')}}

{{number_format($data['sumTotalPay'])}}

{{__('Sales Number')}}

{{$data['sumTotalCount']}}
@endif

{{__('Browser Statistics')}}

@forelse($data['fetchTopBrowsers'] as $item )

{{$item['browser']}}

{{$item['screenPageViews']}}%
@empty @endforelse

{{__('Last Month Misit Mtatistics')}}

{{__('Total Hits')}}

{{$data['sumPageViews']}}

{{__('Total Visitors')}}

{{$data['sumVisitors']}}
@if(Auth::user()->type==0 or in_array('Admin.orders.new',$arrayPermD))

{{__('The Latest Orders')}}

@php $i=1; @endphp @foreach($data['orderNewInfo'] as $value) @endforeach
{{__('Index')}} {{__('Date')}} {{__('Tracking Code')}} {{__('Price')}} {{__('User')}} {{__('Possibilities')}}
{{$i++}} {{timestampDate($value->date,true)['date']}} {{$value->tracking_code}} {{fnumber_format($value->Payment->price_off)}} {{$prefix}} {{$value->User->name}} {{$value->User->family}}
@endif
@endsection @section('script') @endsection