<?php
$l1 = isset($l1) ? $l1 : '';
?>
{{--@can('User-Create')--}}
{{--@endcan--}}

<div class="top-content">
    <div class="row">
        <div class="col-sm-12 col-xs-12">
            <div class="title-add">
                <div class="pull-left">
                    <h3>{{$l1}}</h3>
                </div>

            </div>
            @if(_btnCrud($search))
                <div class="">
                    <div class="col-md-3">
                        <label for="">Select Employee</label>
                        {{--<select id="emp" class="form-control emp" name="emp">--}}
                        <input id="emp" class="form-control emp" name="emp">
                        </input>
                    </div>
                </div>
            @endif
            @if(_btnCrud($create))
                <div class="pull-right">
                    <a href="{{url(isset($route)?$route.'/create':'javascript:void(0)')}}"
                       class="button_primary button_sm"><span class="fa fa-plus"></span>
                        Create New</a>
                </div>
            @endif

            @if(_btnCrud($btn_custom))
                <div class="pull-right">
                    <a href="{{url(isset($route)?$route.'-generate':'javascript:void(0)')}}"
                       class="button_primary button_sm" title="Generate Leave Total"><span class="fa fa-spinner"></span>
                        Generate</a>
                </div>
            @endif
        </div>
    </div>
</div>