@php // Every "reason" resources/js/pwa.js can return, in the words a person can // act on. A bare "subscribe-failed" told nobody anything. $reasons = [ 'unsupported' => __('This browser cannot do notifications. Chrome, Edge, Firefox and Safari all can.'), 'not-configured' => __('Notifications are not switched on for this installation yet. An administrator has to set them up.'), 'ios-needs-install' => __('On iPhone and iPad, notifications only work once BillPro is installed. Add it to your home screen first, then come back here and try again.'), 'blocked' => __('Your browser is blocking notifications for this site. Open the padlock in the address bar and allow notifications, then try again.'), 'dismissed' => __('You closed the permission box without choosing. Try again when you are ready.'), 'no-worker' => __('BillPro could not start its background helper. This normally means the site is not on a secure (https) address.'), 'subscribe-failed' => __('Your browser refused to register for notifications. Try again, or restart the browser.'), 'server-refused' => __('The server would not record this device. Try again in a moment.'), 'unavailable' => __('Your browser is not offering to install right now. Use its own menu — look for "Install" or "Add to Home screen".'), 'ios-manual' => __('On iPhone and iPad: tap Share, then "Add to Home Screen".'), ]; @endphp
{{ __('Notifications are not set up on this server yet.') }}
@if ($isAdmin)
{{ __('Run') }} php artisan billpro:push-keys
{{ __('on the server, paste the two lines it prints into .env, then clear the config cache. Everything else on this page will start working straight away.') }}
{{ __('You can still install BillPro on your phone. Ask an administrator to finish setting up alerts.') }}
@endif{{ __('This device') }}
{{ __('An approval waiting on you, a job due today, a cash-up that does not balance — sent to this device the moment it happens, whether BillPro is open or not.') }}
{{-- State line. Says what is true right now, in one sentence. --}}
{{ __('Home screen') }}
{{ __('Put BillPro on your phone or desktop with its own icon. It opens full-screen with no address bar, starts faster, and on iPhone it is the only way notifications can work at all.') }}
{{ __('Install it by hand') }}
{{ __('Everywhere BillPro can reach you. Turning a device off here does not affect the others.') }}
| {{ __('Device') }} | {{ __('Added') }} | {{ __('Last alert') }} | {{ __('Sound') }} | {{ __('Actions') }} |
|---|---|---|---|---|
|
@if ($renamingId === $device->id)
|
{{ $device->created_at?->timezone(config('app.display_timezone'))->format('j M Y') }} | {{ $device->last_used_at?->timezone(config('app.display_timezone'))->diffForHumans() ?? __('Never') }} |
{{ $device->sound ? __('On') : __('Silent') }}
|
|
|
|
||||
{{ __('The same things that already appear in the bell — nothing extra, and never anything promotional. What reaches you depends on your role.') }}
{{ $group['title'] }}
{{ $group['body'] }}