{{-- Skapa API-nyckel form (#2957 slice 6c, card #3020). Included by apiKey/create only. Posts status, name, domain, receiverList, returnUrl and props[] (1 when checked) to api.store, as before. The lists and fields are the company's own, read here as the old view did. --}} @php $company = Auth::user()->company; $lists = $company->receiverLists()->orderBy('name')->get(); $status = (string) old('status', '1'); @endphp
@csrf @include('apiKey.partials.nh-list-select', ['lists' => $lists, 'selected' => old('receiverList')]) @include('apiKey.partials.nh-props', ['checked' => fn ($name) => (bool) old('props.'.$name)]) {{ __('api.form.save') }} {{ __('api.nh.cancel') }}