@php $t = $type ?? null; @endphp
<div class="row">
    <div class="col-md-6"><div class="form-group">
        {!! Form::label('label', __('meddocuments::lang.label') . ':*') !!}
        {!! Form::text('label', $t->label ?? null, ['class' => 'form-control', 'required']) !!}
    </div></div>
    <div class="col-md-6"><div class="form-group">
        {!! Form::label('type_key', __('meddocuments::lang.type_key') . ':') !!}
        {!! Form::text('type_key', $t->type_key ?? null, ['class' => 'form-control', 'placeholder' => 'auto_from_label', isset($t) ? 'readonly' : '']) !!}
        <p class="help-block">@lang('meddocuments::lang.type_key_help')</p>
    </div></div>
</div>
<div class="form-group">
    {!! Form::label('description', __('meddocuments::lang.description') . ':') !!}
    {!! Form::textarea('description', $t->description ?? null, ['class' => 'form-control', 'rows' => 2]) !!}
</div>
<div class="row">
    <div class="col-md-6"><div class="form-group">
        {!! Form::label('retention_days', __('meddocuments::lang.retention_days') . ':') !!}
        {!! Form::number('retention_days', $t->retention_days ?? null, ['class' => 'form-control', 'min' => 1]) !!}
    </div></div>
    <div class="col-md-6">
        <div class="checkbox" style="margin-top:28px;"><label>{!! Form::checkbox('requires_signature', 1, isset($t) ? (bool) $t->requires_signature : false) !!} @lang('meddocuments::lang.requires_signature')</label></div>
    </div>
</div>
<div class="checkbox"><label>{!! Form::checkbox('is_active', 1, isset($t) ? (bool) $t->is_active : true) !!} @lang('meddocuments::lang.active')</label></div>
