@extends('admin.layouts.master') @section('title','All Batch') @section('maincontent') @include('admin.layouts.topbar',$data)
{{ __('All Batches') }}
@can('batch.delete') {{ __('Delete Selected') }} @endcan @can('batch.create') {{ __('Add Batch') }} @endcan
@if(Auth::User()->role == "admin") @foreach($course as $cat) @endforeach @else @php $cors = App\Batch::where('user_id', Auth::User()->id)->get(); @endphp @foreach($cors as $cor) @endforeach @endif
# {{ __('Image') }} {{ __('Batch Name') }} {{ __('Featured') }} {{ __('Status') }} {{ __('Action') }}
1 @if($cat['preview_image'] !== NULL && $cat['preview_image'] !== '') {{$cat->title}} @else {{$cat->title}} @endif {{$cat->title}}
2 @if($cor['preview_image'] !== NULL && $cor['preview_image'] !== '') @else @endif {{$cor->title}} {{ $cor->user['fname'] }} {{$cor->slug}}
@endsection @section('scripts') @endsection