<?php
$auth_user = authSession();
?>

{{ Form::open(['route' => ['servicepackage.destroy', $servicepackage->id], 'method' => 'delete','data--submit'=>'servicepackage'.$servicepackage->id]) }}
<div class="d-flex justify-content-end align-items-center">
@if($auth_user->can('servicepackage edit'))
    <a class="mr-2" href="{{ route('servicepackage.create',['id' => $servicepackage->id]) }}" title="{{ __('messages.update_form_title',['form' => __('messages.servicepackage') ]) }}"><i class="fas fa-pen text-secondary"></i></a>
@endif
@if($auth_user->can('servicepackage delete'))
<a href="{{ route('servicepackage.action',['id' => $servicepackage->id, 'type' => 'forcedelete']) }}" title="{{ __('messages.forcedelete_form_title',['form' => __('messages.service_package') ]) }}" data--submit="confirm_form" data--confirmation='true' data--ajax='true' data-title="{{ __('messages.forcedelete_form_title',['form'=>  __('messages.service_package') ]) }}" data-message='{{ __("messages.forcedelete_msg") }}' data-datatable="reload" class="mr-3">
    <i class="far fa-trash-alt text-danger"></i>
</a>
@endif
</div>
{{ Form::close() }} 