@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')
{{ __('Add Batch') }} {{ __('Delete Selected') }}
@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
# {{ __('adminstaticword.Image') }} {{ __('adminstaticword.Title') }} {{ __('adminstaticword.Instructor') }} {{ __('adminstaticword.Slug') }} {{ __('adminstaticword.Featured') }} {{ __('adminstaticword.Status') }} {{ __('adminstaticword.Action') }}
1 @if($cat['preview_image'] !== NULL && $cat['preview_image'] !== '') @else @endif {{$cat->title}} @if(isset($cat->user)){{ $cat->user['fname'] }} @endif {{$cat->slug}}
2 @if($cor['preview_image'] !== NULL && $cor['preview_image'] !== '') @else @endif {{$cor->title}} {{ $cor->user['fname'] }} {{$cor->slug}}
@endsection @section('scripts') @endsection