@extends('layouts.app')

@section('title')
 Category 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-unit-category')
        <li ><a href="{{route('unitCategory.all')}}"> Categories </a></li>
        @endpermission
        <li class="active"> Category 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"> Category Information</h3><hr>
                                    <div class="table-responsive">
                                        <table class="table">
                                            <tbody>
                                                <tr style="background: #F4F4F4; height: 50px;">
                                                    <td width="110px">Name</td>
                                                    <td> {{$category->name}} </td>
                                                </tr>
                                                <tr style="background: #F4F4F4; height: 50px;">
                                                    <td width="110px">Amount </td>
                                                    <td>{{$category->percent}} </td>
                                                </tr>
                                                <tr style="background: #F4F4F4; height: 50px;">
                                                    <td width="110px">Is Percent </td>
                                                    <td>@if($category->is_percent) 
                                                    YES
                                                @else 
                                            NO
                                        @endif</td>
                                                </tr>

                                                <tr style="background: #F4F4F4; height: 50px;">
                                                    <td>Updated at</td>
                                                    <td> {{$category->updated_at}}</td>
                                                </tr>
                                                <tr style="background: #F4F4F4; height: 50px;">
                                                    <td>Created at</td>
                                                    <td> {{$category->created_at}}</td>
                                                </tr>

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

@stop