@extends('admin.layouts.master') @section('title','All Course') @section('maincontent') @component('components.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('Course') }} @endslot @slot('menu1') {{ __('Course') }} @endslot @endcomponent
{{ __('Add Course') }} @if(Auth::User()->role == "admin" ) @endif
  • {{ __('Filtered') }}

    close
    {{ __('Price') }}
    {{ __('Status') }}
    {{ __('Featured') }}
    {{__('A-Z')}}
    {{__('Z-A')}}
    {{ __('Category') }}

    {{ $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'])) User Avatar
    @else User Avatar
    @endif

    {{ $cat->title }}

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

    @if($image = @file_get_contents('../public/images/user_img/'.$cat->user->user_img)) profilephoto @else profilephoto @endif


    @empty

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

    @endforelse
    {!! $course->render() !!}



    @endsection @section('script') @endsection