@extends('admin.adminlayouts.adminlayout') @section('head') {!! HTML::style("assets/global/plugins/select2/css/select2.css") !!} {!! HTML::style("assets/global/plugins/datatables/plugins/bootstrap/datatables.bootstrap.css")!!} @stop @section('mainarea')

{{ trans('pages.departments.indexTitle')}}

{{--INLCUDE ERROR MESSAGE BOX--}} {{--END ERROR MESSAGE BOX--}}
@if($loggedAdmin->manager!=1) @endif
@if($loggedAdmin->manager!=1) @endif {{--@if(count($departments)>0)--}} @forelse ($departments as $index=>$department) @if($loggedAdmin->manager!=1) @endif @empty @endforelse {{--@endif--}}
@lang('core.serialNo') {{trans('core.departmentName')}} {{trans('core.designations')}} {{trans('core.actions')}}
{{ $index+1 }} {{ $department->name }}
    @foreach($department->designations as $desig)
  1. {{ $desig->designation }}
  2. @endforeach
{{trans('core.btnViewEdit')}} {{trans('core.btnDelete')}}
@lang('messages.noDeptTable')
{{--------------------------EDIT MODALS-----------------}}
{{------------------------END EDIT MODALS---------------------}} {{--MODAL CALLING--}} @include('admin.common.delete') @include('admin.common.show-modal') {{--MODAL CALLING END--}} @stop @section('footerjs') @stop