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

{{ __('adminstaticword.Dashboard') }} {{ $project_title }}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

@php $user = App\User::all(); if(count($user)>0){ echo count($user); } else{ echo "0"; } @endphp {{ __('adminstaticword.Users') }}
@php $users = App\User::limit(8)->orderBy('id', 'DESC')->get(); @endphp
@php $courses = App\Course::limit(5)->orderBy('id', 'DESC')->get() @endphp @if(!$courses->isEmpty())

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

@endif
@php $orders = App\Order::limit(7)->orderBy('id', 'DESC')->get(); @endphp @if( !$orders->isEmpty() )

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

@php $orders = App\Order::limit(7)->orderBy('id', 'DESC')->get(); @endphp @foreach($orders as $order) @endforeach
{{ __('adminstaticword.User') }} {{ __('adminstaticword.Course') }} {{ __('adminstaticword.Amount') }} {{ __('adminstaticword.Date') }} {{ __('adminstaticword.Invoice') }}
{{ $order->user['fname'] }} @if($order->course_id != NULL) {{ $order->courses['title'] }} @else {{ $order->bundle['title'] }} @endif @if($order->coupon_discount == !NULL) {{ $order['total_amount'] - $order['coupon_discount'] }} @else {{ $order['total_amount'] }} @endif
{{ date('jS F Y', strtotime($order['created_at'])) }}
{{ __('adminstaticword.Invoice') }}
@endif @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'] }} {{ $instructor['lname'] }} {{ str_limit($instructor['detail'], $limit = 160, $end = '...') }}

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

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

@endif @endforeach
@endif
@endif @endsection