@extends('administrator.master')
@section('title', __('Client Types'))

@section('main_content')
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            {{ __('CLIENT TYPES') }}
        </h1>
        <ol class="breadcrumb">
            <li><a href="{{ url('/dashboard') }}"><i class="fa fa-dashboard"></i> {{ __('Dashboard') }}</a></li>
            <li><a>{{ __('Setting') }}</a></li>
            <li><a href="{{ url('/setting/client-types') }}">{{ __('Client types') }}</a></li>
            <li class="active">{{ __('Details') }}</li>
        </ol>
        </ol>
    </section>

    <!-- Main content -->
    <section class="content">
        <!-- Default box -->
        <div class="box">
            <div class="box-header with-border">
                <h3 class="box-title">{{ __('Details of client type') }}</h3>

                <div class="box-tools pull-right">
                    <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse"><i class="fa fa-minus"></i></button>
                    <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove"><i class="fa fa-times"></i></button>
                </div>
            </div>
            <div class="box-body">

<div  class="col-md-6">  <a href="{{ url('/setting/client-types') }}" class="btn btn-primary btn-flat"><i class="fa fa-arrow-left"></i> {{ __('Back') }}</a></div>
         

<div  class="col-md-6">  <input type="text" id="myInput" class="form-control" placeholder="{{ __('Search..') }}"></div>



                <div class="col-md-12">
                    <table class="table table-bordered table-striped">
                        <tbody>
                            <tr>
                                <td>{{ __('Client Type') }}</td>
                                <td>{{ $client_type->client_type }}</td>
                            </tr>
                            <tr>
                                <td>{{ __('Client Type Description') }}</td>
                                <td>{{$client_type->client_type_description}}</td>
                            </tr>
                            <tr>
                                <td>{{ __('Create By') }}</td>
                                <td>{{ $client_type->name }}</td>
                            </tr>
                            <tr>
                                <td>{{ __('Date Added') }}</td>
                                <td>{{ date("D d F Y h:ia", strtotime($client_type->created_at)) }}</td>
                            </tr>
                            <tr>
                                <td>{{ __('Last Updated') }}</td>
                                <td>{{ date("D d F Y h:ia", strtotime($client_type->updated_at)) }}</td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <div class="btn-group btn-group-justified">
                                        @if ($client_type->publication_status == 1)
                                            <div class="btn-group">
                                                <a href="{{ url('/setting/client-types/unpublished/' . $client_type->id)}}" class="tip btn btn-success btn-flat" data-toggle="tooltip" data-original-title="Unpublished">
                                                    <i class="fa fa-arrow-down"></i>
                                                    <span class="hidden-sm hidden-xs"> {{ __('Published') }}</span>
                                                </a>
                                            </div>
                                        @else
                                            <div class="btn-group">
                                                <a href="{{ url('/setting/client-types/published/' . $client_type->id)}}" class="tip btn btn-warning btn-flat" data-toggle="tooltip" data-original-title="Published">
                                                    <i class="fa fa-arrow-up"></i>
                                                    <span class="hidden-sm hidden-xs"> {{ __('Unpublished') }}</span>
                                                </a>
                                            </div>
                                        @endif
                                        <div class="btn-group">
                                            <a href="#" class="tip btn btn-primary btn-flat" title="" data-original-title="Label Printer">
                                                <i class="fa fa-print"></i>
                                                <span class="hidden-sm hidden-xs"> {{ __('Print') }}</span>
                                            </a>
                                        </div>
                                        <div class="btn-group">
                                            <a href="#" class="tip btn btn-primary btn-flat" title="" data-original-title="PDF">
                                                <i class="fa fa-file-pdf-o"></i>
                                                <span class="hidden-sm hidden-xs">{{ __('PDF') }} </span>
                                            </a>
                                        </div>
                                        <div class="btn-group">
                                            <a href="{{ url('/setting/client-types/edit/' . $client_type->id) }}" class="tip btn btn-warning tip btn-flat" title="" data-original-title="Edit Product">
                                                <i class="fa fa-edit"></i>
                                                <span class="hidden-sm hidden-xs"> {{ __('Edit') }}</span>
                                            </a>
                                        </div>
                                        <div class="btn-group">
                                            <a href="{{ url('/setting/client-types/delete/' . $client_type->id) }}" onclick="return confirm('Are you sure to delete this ?');" class="tip btn btn-danger bpo btn-flat" title="" data-content="<div><p>{{ __('Are you sure?') }}</p><a class='btn btn-danger' href='https://btrc.gunitok.com/products/delete/1'>{{ __('Yes I am sure') }}</a> <button class='btn bpo-close'>{{ __('No') }}</button></div>" data-html="true" data-placement="top" data-original-title="<b>{{ __('Delete Product') }}</b>">
                                                <i class="fa fa-trash-o"></i>
                                                <span class="hidden-sm hidden-xs">{{ __('Delete') }} </span>
                                            </a>
                                        </div>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>





 <!-- =================Data Search================== -->
                <script>
                $(document).ready(function(){
                 $("#myInput").on("keyup", function() {
                   var value = $(this).val().toLowerCase();
                   $("#myTable tr").filter(function() {
                     $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1)
                   });
                 });
                });
                </script>
<!-- =================Data Search================== -->

            </div>
            <!-- /.box-body -->
        </div>
        <!-- /.box -->
    </section>
    <!-- /.content -->
</div>
@endsection