@extends( 'layouts.app' )

@section('title')
Department Detail 
@stop

@section('breadcrumb')
<ol class="breadcrumb pull-right">
        <li><a href="{{route('home')}}"><i class="fa fa-dashboard"></i> Home</a></li>
         @permission('view-department')
        <li ><a href="{{route('department.all')}}">Departments</a></li>
        @endpermission
        <li class="active">Department Detail</li>
      </ol>
@stop
@section('content')
            <div class="container-fluid">

                <!-- /row -->
                <div class="row">
                    <div class="col-sm-12">
                        <div class="white-box">
                            <h3 class="box-title">Department Information</h3>
                            <hr>
                                    <div class="table-responsive">
                                        <table class="table">
                                            <tbody>
                                                <tr>
                                                    <td>Name</td>
                                                    <td> {{$department->name}} </td>
                                                </tr>
                                                <tr>
                                                    <td>Status</td>
                                                    @if($department->status == true)
                                                    <td>Active </td>
                                                    @else
                                                    <td> InActive </td>
                                                    @endif
                                                </tr>

                                                <tr>
                                                    <td>Updated at</td>
                                                    <td> {{$department->updated_at}}</td>
                                                </tr>
                                                <tr>
                                                    <td>Created at</td>
                                                    <td> {{$department->created_at}}</td>
                                                </tr>

                                            </tbody>
                                        </table>
                                    </div>

                        </div>
                    </div>
                </div>
                <!-- /.row -->
              </div>
            <!-- /.container-fluid -->

@stop