{{-- Show button if not complete, failed, or processing --}}
{{--
--}} @if(!$job) @else @endif
Loading...
@if($job)
{{ $job->created_at->diffForHumans() }}
@endif
@if(!$groupimport)

{{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recType->title)) }}

@if(isset($pendingOrProcessingRecords[$recType->recordType])) @if(isset($pendingOrProcessingRecords[$recType->recordType])) {{ $pendingOrProcessingRecords[$recType->recordType]->status }} @else Pending @endif @if(isset($pendingOrProcessingRecords[$recType->recordType])) @if(!in_array($pendingOrProcessingRecords[$recType->recordType]->status, ['Failed', 'Pending']))
{{ $pendingOrProcessingRecords[$recType->recordType]->progress }}%
@else
@endif @else
@endif @endif
@if ($mapping->date_range)
Import filter set to import all {{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recType->title)) }} since {{ \Carbon\Carbon::parse($mapping->date_start)->format('F jS, Y') }}.
@else
Importing filter set to import all {{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recType->title)) }} since the start of time.
@endif
@else @if($groupedRecordTypes) @foreach($groupedRecordTypes as $key => $recordtype)

{{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recordtype->title)) }}

@if(isset($pendingOrProcessingRecords[$recordtype->recordType])) {{ $pendingOrProcessingRecords[$recordtype->recordType]->status }} @else Pending @endif {{-- {{ dd($pendingOrProcessingRecords)}} --}} @if(isset($pendingOrProcessingRecords[$recordtype->recordType])) @if(!in_array($pendingOrProcessingRecords[$recordtype->recordType]->status, ['Failed', 'Pending']))
{{ $pendingOrProcessingRecords[$recordtype->recordType]->progress }}%
@else
@endif @else
@endif
@if(isset($mappings[$recordtype['id']])) @if ($mappings[$recordtype['id']]->date_range)
Import all {{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recordtype->title)) }} since {{ \Carbon\Carbon::parse($mappings[$recordtype['id']]->date_start)->format('F jS, Y') }}.
@else
Import all {{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recordtype->title)) }} since the start of time.
@endif @else
Import all {{ \Illuminate\Support\Str::title(\Illuminate\Support\Str::plural($recordtype->title)) }} since the start of time.
@csrf
@endif
@endforeach @endif @endif