@if ($account) @foreach ($warnings as $warning)
{{ $warning }}
@endforeach @if ($isUploaded)
@csrf @method('DELETE') {{ __('Remove uploaded key') }}
@endif @else @endif
@if ($account)

{{ __('Riders and drivers sign in to Firebase with short-lived tokens from this key. The database rules let each of them read only their own rides and offers.') }}

@php($phones = fn (array $app) => trans_choice(':push of :devices signed-in phone|:push of :devices signed-in phones', $app['devices'], $app)) @if (collect($apps)->contains(fn (array $app) => $app['push'] < $app['devices']))

{{ __('A phone registers for push after signing in. iPhones only get a push token once an APNs key is added in the Firebase console (Project settings → Cloud Messaging).') }}

@endif

{{ __('Realtime Database rules') }}

{{ __('Until they are deployed, Firebase refuses the apps’ live listeners and the apps poll instead. Deploy again whenever firebase/database.rules.json changes.') }}

@csrf {{ __('Deploy rules') }}
@endif
@csrf @method('PUT') {{ __('Upload key') }}

{{ __('The file is validated, encrypted with your APP_KEY and never shown again. Upload it again if APP_KEY changes.') }}