<div class="modal-dialog" role="document"><div class="modal-content">
    {!! Form::open(['route' => ['medorg.licenses.verify', $license->id], 'class' => 'medorg-form']) !!}
    <div class="modal-header"><button type="button" class="close" data-dismiss="modal">&times;</button><h4 class="modal-title">@lang('medorganization::lang.verify_license')</h4></div>
    <div class="modal-body">
        <table class="table table-condensed">
            <tr><th>@lang('medorganization::lang.user')</th><td>{{ optional($license->user)->user_full_name ?? ('#' . $license->user_id) }}</td></tr>
            <tr><th>@lang('medorganization::lang.license_type')</th><td>{{ $license->license_type }}</td></tr>
            <tr><th>@lang('medorganization::lang.license_number')</th><td>{{ $license->license_number }}</td></tr>
            <tr><th>@lang('medorganization::lang.issuing_authority')</th><td>{{ $license->issuing_authority ?: '—' }}</td></tr>
            <tr><th>@lang('medorganization::lang.expiry_date')</th><td>{{ $license->expiry_date ? $license->expiry_date->toDateString() : '—' }}</td></tr>
            @if($license->document_path)
                <tr><th>@lang('medorganization::lang.document_path')</th><td>{{ $license->document_path }}</td></tr>
            @endif
        </table>
        <div class="form-group">
            {!! Form::label('decision', __('medorganization::lang.decision') . ':*') !!}
            {!! Form::select('decision', [
                'verified' => __('medorganization::lang.license_status_verified'),
                'rejected' => __('medorganization::lang.license_status_rejected'),
            ], 'verified', ['class' => 'form-control', 'required']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('notes', __('medorganization::lang.notes') . ':') !!}
            {!! Form::textarea('notes', null, ['class' => 'form-control', 'rows' => 2]) !!}
        </div>
    </div>
    <div class="modal-footer"><button type="submit" class="btn btn-success">@lang('medorganization::lang.save_decision')</button><button type="button" class="btn btn-default" data-dismiss="modal">@lang('messages.close')</button></div>
    {!! Form::close() !!}
</div></div>
