@extends('admin.layouts.master') @section('title', 'Dashboard - Admin') @section('body') @if(Auth()->User()->role == "admin")

{{ __('adminstaticword.Dashboard') }} {{ $gsetting->project_title }}

@include('sweetalert::alert')

@php $user = App\User::where('status', '1')->count(); if($user>0){ echo $user; } else{ echo "0"; } @endphp

{{ __('adminstaticword.User') }}

{{ __('adminstaticword.Moreinfo') }}

@php $cat = App\Categories::where('status', '1')->count(); if($cat>0){ echo $cat; } else{ echo "0"; } @endphp

{{ __('adminstaticword.Categories') }}

{{ __('adminstaticword.Moreinfo') }}

@php $course = App\Course::where('status', '1')->count(); if($course>0){ echo $course; } else{ echo "0"; } @endphp

{{ __('adminstaticword.Courses') }}

{{ __('adminstaticword.Moreinfo') }}

{{-- @php $page = App\Order::where('status', '1')->count(); if($page>0){ echo $page; } else{ echo "0"; } @endphp --}} {{ $orderCount }}

{{ __('adminstaticword.OrderView') }}

{{ __('adminstaticword.Moreinfo') }}
{{--

@php $faq = App\FaqStudent::count(); if($faq>0){ echo $faq; } else{ echo "0"; } @endphp

{{ __('adminstaticword.Faqs') }}

{{ __('adminstaticword.Moreinfo') }}
--}} {{--

@php $review = App\Page::count(); if($review>0){ echo $review; } else{ echo "0"; } @endphp

{{ __('adminstaticword.Pages') }}

{{ __('adminstaticword.Moreinfo') }}
--}} {{--

@php $review = App\User::where('status', '1')->where('role', 'instructor')->count(); if($review>0){ echo $review; } else{ echo "0"; } @endphp

{{ __('adminstaticword.Coachs') }}

{{ __('adminstaticword.Moreinfo') }}
--}} {{--

@php $review = App\Testimonial::count(); if($review>0){ echo $review; } else{ echo "0"; } @endphp

{{ __('adminstaticword.Testimonials') }}

{{ __('adminstaticword.Moreinfo') }}
--}}
{{--
{!! $usersChart->container() !!}
--}} {{--
{!! $userEnrolled->container() !!}
--}} {{--
{!! $pieChart->container() !!}
--}}

{{ __('adminstaticword.LatestUsers') }}

@php $user = App\User::where('status', 1)->count(); if($user>0){ echo $user; } else{ echo "0"; } @endphp {{ __('adminstaticword.User') }}
@php $users = App\User::limit(8)->orderBy('id', 'DESC')->get(); @endphp
    @foreach($users as $user)
  • @if($user['user_img'] != null || $user['user_img'] !='') User Image @else User Image @endif @if ($user->jht_introuctor_id) 喬山教練 @else {{ name_mask($user['fname']) }} @endif {{ date('Y m/d', strtotime($user['created_at'])) }}
  • @endforeach
@php $courses = App\Course::limit(5)->orderBy('id', 'DESC')->get() @endphp @if(!$courses->isEmpty()) @endif
{{-- @php $orders = App\Order::limit(7)->orderBy('id', 'DESC')->get(); @endphp --}} @isset( $orders )

{{ __('adminstaticword.LatestOrders') }}

{{-- @php $orders = $orders->limit(7)->get(); @endphp --}} @foreach($orders as $orderId => $order) {{-- --}} @php $orderId = trim( $orderId, "#"); @endphp @endforeach
{{ __('adminstaticword.User') }} {{ __('adminstaticword.OrderNumber') }} {{ __('adminstaticword.Amount') }} {{ __('adminstaticword.Date') }} {{ __('adminstaticword.View') }}
@if(isset($order->user)){{ name_mask($order->user['fname']) }}@endif {{ $orderId }} {{-- @if($order->course_id != NULL) {{ $order->courses['title'] }} @elseif( ! empty( $order->bundle ) ) {{ $order->bundle['title'] }} @endif --}} {{-- @isset($order['nettAmount']) --}} {{ $order['total_price'] }} {{-- @else {{ $order['nettAmount'] }} @endisset --}} {{-- @if($order->coupon_discount == !NULL) @if($gsetting['currency_swipe'] == 1) {{ $order['total_amount'] - $order['coupon_discount'] }} @else {{ $order['total_amount'] - $order['coupon_discount'] }} @endif @else @if($gsetting['currency_swipe'] == 1) @else {{ $order['total_amount'] }} @endif @endif --}}
{{ date('Y m/d', strtotime($order['created_at'])) }}
{{ __('adminstaticword.Invoice') }}{{ __('adminstaticword.View') }}
@endisset @php $instructors = App\Instructor::limit(3)->orderBy('id', 'DESC')->get(); @endphp {{-- @if( !$instructors->isEmpty() )

{{ __('adminstaticword.InstructorRequest') }}

@foreach($instructors as $instructor) @if($instructor->status == 0)
user image

 {{ date('jS F Y', strtotime($instructor['created_at'])) }} {{ $instructor['fname'] }}  {{ str_limit($instructor['detail'], $limit = 160, $end = '...') }}

{{ __('adminstaticword.Resume') }}:

{{ __('adminstaticword.Download') }}

@endif @endforeach
@endif --}}
{{trans('adminstaticword.GC_TOP_NOTICE')}}
{{trans('adminstaticword.GC_SEC_NOTICE')}}
@endif @endsection @section('scripts') {!! $usersChart->script() !!} {!! $userEnrolled->script() !!} {!! $pieChart->script() !!} @endsection