@if ($edit)
{!! Form::open(['route' => 'staffs.edit', 'files' => true, 'id' => 'staff-form']) !!}
@else
{!! Form::open(['route' => 'staffs.create', 'files' => true, 'id' => 'staff-form']) !!}
@endif
@if($edit)
@endif
{!! Form::close() !!}
@if (settings('2fa.enabled') && $edit)
{!! Form::open(['route' => ["user.two-factor.{$route}", $staff->id], 'id' => 'two-factor-form']) !!}
@include('user.partials.two-factor', ['user' => $staff])
{!! Form::close() !!}
@endif