@extends('layouts.default_module') @section('module_name') List of groups @stop @section('add_btn') {!! Form::open(['method' => 'get', 'route' => ['group.create'], 'files' => true]) !!} {!! Form::submit('Add', ['class' => 'btn btn-success pull-right']) !!} {!! Form::close() !!} @stop @section('table') {!! Form::open(['method' => 'get', 'route' => ['admin.general.discussion'], 'files' => true]) !!} {!! Form::submit('General Discussion', ['class' => 'btn btn-primary ']) !!} {!! Form::close() !!}
{{--
S. No.
--}}
S.NO
Group Name
Lecturer Name
Course Name
Is Active
Option
@foreach ($groups as $key => $gr)
{{ $key + 1 }}
{{ $gr->name }}
{{-- groupss --}}
{{ $gr->lecturer->user->name ?? '' }}
{{-- groupss --}}
{{ $gr->course->title??'' }}
{{-- groupss --}} {{-- @if ($gr->is_active == 1) Active @else In Active @endif --}} {{-- @if ($gr->is_active == 1) --}} is_active == 1 ? 'btn-primary' : 'btn-danger ' }}> {{ $gr->is_active == 1 ? 'Active' : 'In Active' }} {{-- @else In Active @endif --}}
Detail @include('admin.group.partial.detail_modal') Edit
Discussion
@endforeach @section('pagination') {!! $groups->render() !!} @endsection @stop