@php $fieldMeta = [ 'name' => ['label' => __('Name'), 'type' => 'text', 'auto' => 'name', 'span' => 'sm:col-span-2'], 'title' => ['label' => __('Job title'), 'type' => 'text', 'auto' => 'organization-title', 'span' => ''], 'company' => ['label' => __('Company'), 'type' => 'text', 'auto' => 'organization', 'span' => ''], 'phone' => ['label' => __('Phone'), 'type' => 'tel', 'auto' => 'tel', 'span' => ''], 'mobile' => ['label' => __('Mobile or WhatsApp'), 'type' => 'tel', 'auto' => 'tel', 'span' => ''], 'email' => ['label' => __('Email'), 'type' => 'email', 'auto' => 'email', 'span' => ''], 'website' => ['label' => __('Website'), 'type' => 'url', 'auto' => 'url', 'span' => ''], 'address' => ['label' => __('Address'), 'type' => 'text', 'auto' => 'street-address', 'span' => 'sm:col-span-2'], ]; $matchedOn = ['email' => __('email'), 'phone' => __('phone'), 'website' => __('website'), 'name' => __('similar name')]; $chosenEvent = $events->firstWhere('id', (int) $eventId); @endphp
{{-- The event, kept between scans --}}

@if ($events->isEmpty()) {{ __('No events in the commercial calendar from two weeks ago to a month ahead.') }} @else {{ __('Kept for every card you scan, so pick it once.') }} @endif @if ($scanned > 0) {{ trans_choice(':count card scanned so far.|:count cards scanned so far.', $scanned, ['count' => $scanned]) }} @endif

@if ($step === 'capture')

{{ __('Photograph the card') }}

{{ __('Lay it flat in good light and fill the frame with it.') }}

{{ __('Reading the card…') }}

@unless ($readerReady)

{{ __('Card reading is not set up, so you will type the details next to the photo. The photo is still kept on the contact.') }}

@endunless
@elseif ($step === 'review')
@if ($photo) {{ __('The business card') }}
@if ($wasRead) {{ __('Read by AI. Check every field.') }} @elseif ($readError) {{ $readError }} @else {{ __('Type the details from the card.') }} @endif
@if ($readerReady) @endif
@endif

{{ __('The person') }}

@foreach ($fieldMeta as $field => $meta)
@endforeach

{{ __('Their organisation') }}

@foreach ($matches as $match) @endforeach @if ($canCreateOrganisation) @endif

{{ __('A follow-up task is set for you on this day.') }}

{{ __('Start again') }} {{ __('Save contact') }} {{ __('Saving…') }}
@else

{{ $saved['created_contact'] ? __(':name is in the CRM', ['name' => $saved['contact']]) : __(':name was already in the CRM', ['name' => $saved['contact']]) }}

  • {{ $saved['created_organisation'] ? __(':organisation added as a new prospect', ['organisation' => $saved['organisation']]) : __('Linked to :organisation', ['organisation' => $saved['organisation']]) }}
  • @if ($chosenEvent)
  • {{ __('Met at :event', ['event' => $chosenEvent->title]) }}
  • @endif
  • {{ __('Follow-up set for :date', ['date' => $saved['follow_up']]) }}
  • @if ($saved['photo_kept'])
  • {{ __('Card photo kept on the contact') }}
  • @endif
{{ __('Scan the next card') }} {{ __('Open the contact') }}
@endif