Bootstrap4 :: Staffs Modules Completed

This commit is contained in:
Sakthi002
2020-12-31 12:33:28 +05:30
committed by Manish Verma
parent 43d3f83bd0
commit d8c570091f
16 changed files with 946 additions and 898 deletions

View File

@@ -1,15 +1,19 @@
@extends('themes.default1.admin.layout.admin')
@section('Staffs')
active
class="nav-link active"
@stop
@section('staffs-bar')
active
@section('staff-menu-parent')
class="nav-item menu-open"
@stop
@section('staff-menu-open')
class="nav nav-treeview menu-open"
@stop
@section('groups')
class="active"
class="nav-link active"
@stop
@section('HeadInclude')
@@ -27,61 +31,68 @@ class="active"
<!-- /breadcrumbs -->
<!-- content -->
@section('content')
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h2 class="box-title">{!! Lang::get('lang.list_of_groups') !!}</h2><a href="{{route('groups.create')}}" class="btn btn-primary pull-right"><span class="glyphicon glyphicon-plus"></span> &nbsp;{{Lang::get('lang.create_group')}}</a></div>
<div class="box-body table-responsive">
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! Session::get('success') !!}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Fail!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! Session::get('fails') !!}
</div>
@endif
<!-- Table -->
<table class="table table-bordered dataTable" style="overflow:hidden;">
<tr>
<th>{{Lang::get('lang.group_name')}}</th>
<th>{{Lang::get('lang.status')}}</th>
<th>{{Lang::get('lang.action')}}</th>
</tr>
@foreach($groups as $group)
<tr>
<td><a href="{{route('groups.edit', $group->id)}}"> {{$group -> name }}</a></td>
<td>
@if($group->group_status=='1')
<span style="color:green">{{'Active'}}</span>
@else
<span style="color:red">{{'Inactive'}}</span>
@endif
<td>
{!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!}
<a href="{{route('groups.edit', $group->id)}}" class="btn btn-info btn-xs btn-flat"><i class="fa fa-edit" style="color:black;"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fa fa-trash" style="color:black;"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-warning btn-xs btn-flat',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</table>
</div>
<!-- check whether success or not -->
@if(Session::has('success'))
<div class="alert alert-success alert-dismissable">
<i class="fa fa-check-circle"></i>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! Session::get('success') !!}
</div>
@endif
<!-- failure message -->
@if(Session::has('fails'))
<div class="alert alert-danger alert-dismissable">
<i class="fa fa-ban"></i>
<b>Fail!</b>
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
{!! Session::get('fails') !!}
</div>
@endif
<div class="card card-light">
<div class="card-header">
<h3 class="card-title">{!! Lang::get('lang.list_of_groups') !!}</h3>
<div class="card-tools">
<a href="{{route('groups.create')}}" class="btn btn-default btn-tool">
<span class="fas fa-plus"></span>&nbsp;{{Lang::get('lang.create_group')}}
</a>
</div>
</div>
<div class="card-body">
<!-- Table -->
<table class="table table-bordered dataTable" style="overflow:scroll;">
<tr>
<th>{{Lang::get('lang.group_name')}}</th>
<th>{{Lang::get('lang.status')}}</th>
<th>{{Lang::get('lang.action')}}</th>
</tr>
@foreach($groups as $group)
<tr>
<td><a href="{{route('groups.edit', $group->id)}}"> {{$group -> name }}</a></td>
<td>
@if($group->group_status=='1')
<span style="color:green">{{'Active'}}</span>
@else
<span style="color:red">{{'Inactive'}}</span>
@endif
<td>
{!! Form::open(['route'=>['groups.destroy', $group->id],'method'=>'DELETE']) !!}
<a href="{{route('groups.edit', $group->id)}}" class="btn btn-primary btn-xs"><i class="fas fa-edit"> </i> Edit</a>
<!-- To pop up a confirm Message -->
{!! Form::button('<i class="fas fa-trash"> </i> Delete',
['type' => 'submit',
'class'=> 'btn btn-danger btn-xs',
'onclick'=>'return confirm("Are you sure?")'])
!!}
{!! Form::close() !!}
</td>
</tr>
@endforeach
</table>
</div>
</div>
@stop