@extends('admin.layouts.master') @section('title','All Bundle') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ __('All Bundles') }}
@can('bundle-courses.delete') @endcan @can('bundle-courses.create') {{ __('Add Bundle') }} @endcan
@if(Auth::User()->role == "admin") @foreach($course as $cat) {{-- --}} @endforeach @else @php $cors = App\Course::where('user_id', Auth::User()->id)->get(); @endphp @foreach($cors as $cor) @endforeach @endif
# {{ __('Image') }} {{ __('Bundle Name') }} {{ __('Instructor') }} {{ __('Slug') }} {{ __('Featured') }} {{ __('Status') }} {{ __('Subscription') }} {{ __('Action') }}
1 @if($cat['preview_image'] !== NULL && $cat['preview_image'] !== '') @else @endif {{$cat->title}} {{ $cat->user['fname'] }} {{$cat->slug}}
@if( $cat->is_subscription_enabled== '1') {{ __('Active') }} @else {{ __('Deactivate') }} @endif
2 @if($cor['preview_image'] !== NULL && $cor['preview_image'] !== '') @else @endif {{$cor->title}} {{ $cor->user['fname'] }} {{$cor->slug}} @if($cor->featured ==1) {{ __('Yes') }} @else {{ __('No') }} @endif @if($cor->status ==1) {{ __('Active') }} @else {{ __('Deactive') }} @endif
{{ csrf_field() }} {{ method_field('DELETE') }}
@endsection @section('script') @endsection