@extends('layouts.app') @section('content')
{{ $title }}
@if(session('success')) {!! alert_success(session('success')) !!} @elseif(session('error')) {!! alert_error(session('error')) !!} @endif @foreach($ranks as $rank) @endforeach
# Name Salary Status Action
{{ $loop->iteration }} {{ $rank->name }} {{ number_format($rank->salary,2) }} {!! $rank->enabled == 1 ? label("Active","success") : label("Inactive","danger") !!} @if (userCanView('department.toggle')) @if($rank->enabled == 1) Disable @else Enable @endif @endif @if (userCanView('rank.edit')) Edit @endif
@if(userCanView('category.create'))
{{ $title2 }}
{{ csrf_field() }}
@if ($errors->has('name')) @endif
@if ($errors->has('salary')) @endif


@endif
@endsection