@extends('admin.layouts.master') @section('title','All Course') @section('maincontent') @include('admin.layouts.topbar',$data)

{{ $active }}

{{__('Active Course')}}

{{ $deactive }}

{{__('Pending Course')}}

{{ $free }}

{{__('Free Course')}}

{{ $paid }}

{{__('Paid Course')}}

@if(request()->get('searchTerm'))
{{ __("Showing") }} {{ filter_var($course->count()) }} {{ __("of") }} {{ filter_var($course->total()) }} {{ __("results for ") }} "{{ Request::get('searchTerm') }}"
@endif
@forelse($course as $cat)
@if($cat['preview_image'] !== NULL && $cat['preview_image'] !== '' && @file_get_contents('images/course/'.$cat['preview_image'])) {{ $cat->title }}
@else {{ $cat->title }}
@endif

{{ $cat->title }}

@if(isset($cat->user)) {{ $cat->user['fname'] }} @endif

@if($image = @file_get_contents('../public/images/user_img/'.$cat->user->user_img)) {{ $cat->user['fname'] }} @else {{ $cat->user['fname'] }} @endif
@empty

{{ __("No Course Found !") }}

@endforelse
{!! $course->render() !!}
@endsection @section('script') @endsection