@extends('admin.layouts.master') @section('title', 'View All Request Course - Admin') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ __('View All Course Involve Request')}}
@if(Auth::User()->role == "admin" || Auth::User()->role == "instructor") @foreach($all_course as $cat) @endforeach @endif
# {{ __('Image') }} {{ __('Title') }} {{ __('Slug') }} {{ __('Featured') }} {{ __('Status') }} {{ __('Edit') }}
1 @if($cat['preview_image'] != NULL && $cat['preview_image'] != '') @else @endif {{$cat->title}} {{$cat->slug}} @php $involvement = App\Involvement::where('course_id', $cat->id)->where('user_id', Auth::user()->id)->first(); @endphp @if(isset($involvement)) @if($involvement->user_id == Auth::user()->id && $cat->id == $involvement->course_id) {{ __('AlreadyRequest') }} @else @endif @else @endif
@endsection @section('scripts') @endsection