@extends('admin.layouts.master') @section('title','All Batch') @section('maincontent') @component('components.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('Batches') }} @endslot @slot('menu1') {{ __('Batch') }} @endslot @slot('button')
@can('batch.create') {{ __('Add Batch') }} @endcan @can('batch.delete') {{ __('Delete Selected') }} @endcan
@endslot @endcomponent
{{ __('All Batches') }}
@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') }} {{ __('Title') }} {{ __('Featured') }} {{ __('Status') }} {{ __('Action') }}
1 @if($cat['preview_image'] !== NULL && $cat['preview_image'] !== '') @else @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