@extends('admin/layouts.master') @section('title', 'Bundle - Admin') @section('body')
@include('admin.message')
@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
# {{ __('adminstaticword.Image') }} {{ __('adminstaticword.Title') }} {{ __('adminstaticword.Instructor') }} {{ __('adminstaticword.Slug') }} {{ __('adminstaticword.Featured') }} {{ __('adminstaticword.Status') }} {{ __('adminstaticword.Edit') }} {{ __('adminstaticword.Delete') }}
1 @if($cat['preview_image'] !== NULL && $cat['preview_image'] !== '') @else @endif {{$cat->title}} {{ $cat->user['fname'] }} {{$cat->slug}} @if($cat->featured ==1) {{ __('adminstaticword.Yes') }} @else {{ __('adminstaticword.No') }} @endif @if($cat->status ==1) {{ __('adminstaticword.Active') }} @else {{ __('adminstaticword.Deactive') }} @endif
{{ csrf_field() }} {{ method_field('DELETE') }}
2 @if($cor['preview_image'] !== NULL && $cor['preview_image'] !== '') @else @endif {{$cor->title}} {{ $cor->user['fname'] }} {{$cor->slug}} @if($cor->featured ==1) {{ __('adminstaticword.Yes') }} @else {{ __('adminstaticword.No') }} @endif @if($cor->status ==1) {{ __('adminstaticword.Active') }} @else {{ __('adminstaticword.Deactive') }} @endif
{{ csrf_field() }} {{ method_field('DELETE') }}
@endsection