@if (!$auth_data['is_customer']) @else @if ($job->is_recut) @else @if($job->submitted) @else @endif @endif @endif @if (($auth_data['is_customer'] && !$job->submitted) || (($auth_data['is_admin'] || $auth_data['is_super_admin']) && $job->submitted && $job->status <= 3)) @can('job_edit') @if($job->related) @else @endif @endcan @can('job_delete') @if ($job->is_recut)
{!! Form::open(array('style' => 'display: none;', 'method' => 'DELETE', 'route' => ['admin.jobs.destroy', $job->id], 'class' => 'actions-form')) !!} {{Form::hidden('jobOnly', '1', ['class' => 'jobOnly'])}} {!! Form::button(' ', array('type' => 'submit', 'class' => 'btn-transparent mt-2')) !!} {!! Form::close() !!}
@else
{!! Form::open(array('style' => 'display: inline-block;', 'method' => 'DELETE', 'onsubmit' => "return confirm('".trans("global.app_are_you_sure")."');", 'route' => ['admin.jobs.destroy', $job->id], 'class' => 'actions-form')) !!} {!! Form::button(' ', array('type' => 'submit', 'class' => 'btn-transparent mt-2')) !!} {!! Form::close() !!}
@endif @endcan @endif