<!--heading-->
<div class="x-heading"><i class="mdi mdi-file-document-box"></i>{{ cleanLang(__('lang.custom_fields')) }}</div>

<!--Form Data-->
@if(count($fields ?? []) > 0)
<div class="card-show-form-data " id="card-lead-organisation">

    <!--render the form-->
    @include('misc.customfields')

    <div class="form-group text-right">
        <button type="button" class="btn waves-effect waves-light btn-xs btn-default ajax-request"
        data-url="{{ url('leads/content/'.$lead->lead_id.'/show-customfields') }}"
        data-loading-class="loading-before-centre" data-loading-target="card-leads-left-panel">@lang('lang.cancel')</button>
        <button type="button" class="btn btn-danger btn-xs ajax-request"
            data-loading-target="card-leads-left-panel"
            data-loading-class="loading-before-centre"
            data-url="{{ url('/leads/content/'.$lead->lead_id.'/edit-customfields') }}" data-type="form" data-ajax-type="post"
            data-form-id="card-lead-organisation">
            {{ cleanLang(__('lang.update')) }}
        </button>
    </div>
</div>
@else

nothng here

@endif