{{-- Status Messages --}}
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
@if($errors->any())
@foreach ($errors->all() as $error)
- {{ $error }}
@endforeach
@endif
{{-- Display Failed Sends Summary --}}
@if(session('failedSendsSummary') && count(session('failedSendsSummary')) > 0)
Warning: Some SMS sending jobs could not be queued
@foreach(session('failedSendsSummary') as $failed)
-
Phone Number: {{ $failed['phone'] ?? 'N/A' }}
Reason: {{ $failed['reason'] ?? 'Unknown' }}
@if(isset($failed['message']))
Message: "{{ Str::limit($failed['message'], 50) }}"
@endif
@endforeach
@endif
{{-- Step 1: Upload CSV File --}}
@if(empty($headers))
@else
{{-- Clear Session Button --}}
{{-- Step 2: Compose & Send SMS --}}
@if(!empty($cleanData) && count($cleanData) > 0)
Ready to Send! You have {{ count($cleanData) }} valid phone numbers ready for SMS sending.
@endif
{{-- Display Clean Data --}}
@if(!empty($cleanData) && count($cleanData) > 0)
@foreach($headers as $h)
| {{ $h }} |
@endforeach
@if(is_object($cleanData) && method_exists($cleanData, 'items'))
@foreach($cleanData->items() as $row)
@foreach($row as $cell)
| {{ $cell }} |
@endforeach
@endforeach
@else
@foreach($cleanData as $row)
@foreach($row as $cell)
| {{ $cell }} |
@endforeach
@endforeach
@endif
@if(is_object($cleanData) && method_exists($cleanData, 'links'))
@endif
@endif
{{-- Display Problematic Data --}}
@if(!empty($problematicData) && count($problematicData) > 0)
Data Quality Issues: The following rows contain invalid phone numbers or missing data.
You can download this data to correct it and re-upload.
@foreach($headers as $h)
| {{ $h }} |
@endforeach
Issue |
@if(is_object($problematicData) && method_exists($problematicData, 'items'))
@foreach($problematicData->items() as $row)
@foreach($row['data'] as $cell)
| {{ $cell }} |
@endforeach
{{ $row['reason'] }}
|
@endforeach
@else
@foreach($problematicData as $row)
@foreach($row['data'] as $cell)
| {{ $cell }} |
@endforeach
{{ $row['reason'] }}
|
@endforeach
@endif
@if(is_object($problematicData) && method_exists($problematicData, 'links'))
@endif
@endif
@endif