<!-- modal about -->
<div class="modal fade" id="modal_payroll_cancel" role="dialog">
    <div class="modal-dialog">
        {!! Form::open(['route' => ['payrolls.destroy',$payroll->id],'method' => 'DELETE','class' => '','role' => 'form','id'=>'form_modal_payroll_cancel']) !!}
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">{!! sprintf(__('base/payroll.text_modal_cancel'),$payroll->name) !!}</h4>
            </div>
            <div class="modal-body">
                <!-- Mensajes -->
                <div id="modal_general_messages">
                </div>
                <div class="row">
                    <div class="text-center">
                        <h1 class="modal-icon">
                            <i class="fa fa-question-circle-o green"></i>
                        </h1>
                    </div>
                    <h4 class="text-center">{!! sprintf(__('base/payroll.text_modal_cancel_help1'),$payroll->name) !!}</h4>
                    <p class="text-center">@lang('base/payroll.text_modal_cancel_help2')</p>
                    <p class="text-center">@lang('base/payroll.text_modal_cancel_help3')</p>
                </div>
                <div class="row">
                    <div class="col-md-12 col-xs-12">
                        <div class="form-group form-group-sm text-center">
                            {!! html_entity_decode(Form::label('reason_cancellation_id', __('base/payroll.entry_reason_cancellation_id') . '', ['class' => 'control-label'])) !!}
                            {!! Form::select('reason_cancellation_id', $reason_cancellations,old('reason_cancellation_id'), ['class' => 'form-control', 'placeholder' => __('general.text_select'),'required']) !!}
                        </div>
                    </div>
                </div>
                <div class="row hidden" id="cancellation_cfdi">
                    <div class="col-md-4 col-xs-12">
                        <div class="form-group form-group-sm text-center">
                            {!! html_entity_decode(Form::label('reason_cancellation_cfdi', __('base/payroll.entry_reason_cancellation_cfdi') . '', ['class' => 'control-label'])) !!}
                            {!! Form::select('reason_cancellation_cfdi', [],old('reason_cancellation_cfdi'), ['class' => 'form-control', 'placeholder' => __('general.text_select')]) !!}
                        </div>
                    </div>
                    <div class="col-md-8 col-xs-12">
                        <div class="form-group form-group-sm text-center">
                            {!! html_entity_decode(Form::label('reason_cancellation_uuid', __('base/payroll.entry_reason_cancellation_uuid') . '', ['class' => 'control-label'])) !!}
                            {!! Form::text('reason_cancellation_uuid',old('reason_cancellation_uuid'), ['class' => 'form-control text-center', 'placeholder' => __('base/payroll.entry_reason_cancellation_uuid')]) !!}
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <div class="pull-right">
                    {!! Form::button(__('general.button_confirm'),['type' => 'submit', 'class' => 'btn btn-sm btn-primary']) !!}
                    <button type="button" class="btn btn-sm btn-default" data-dismiss="modal">{{ __('general.button_close') }}</button>
                </div>
            </div>
        </div>
        {!! Form::close() !!}
    </div>
</div>
<!-- /modal about -->
