@extends('layouts.app') @section('title', 'Bulk Batch Explorer') @section('content')

Bulk Explorer

Batch GUID: ...{{ substr($batch->bulk_guid, -12) }}

Signatures

{{ $signed_count }} / {{ $batch->total_count }}

Status

{{ $display_status ?? $batch->status }}

Sent Date

{{ date('M d, Y', strtotime($batch->created_at)) }}

Grouped Templates

@foreach($batchTemplates as $t) {{ $t->template_title }} @endforeach
@php $grouped = $packages->groupBy('package_id'); @endphp @foreach($grouped as $pid => $signers) @php $first = $signers->first(); @endphp @foreach($signers as $index => $s) @endforeach @endforeach
Group / Signer Progress Action
@if($index === 0)
GROUP #{{ $loop->parent->iteration }}
@endif
{{ strtoupper(substr($s->recipient_name, 0, 1)) }}
{{ $s->recipient_name }}
{{ $s->recipient_email }}
{{ $s->package_status }}
GUID: ...{{ substr($s->package_guid, -8) }}
@if($index === 0 && $first->package_status == 'Completed') @php $signed_urls = []; foreach($signers as $sig) { $json_docs = json_decode($sig->email_template_json); if($json_docs) { foreach($json_docs as $jd) { $signed_urls[] = $baseUrl . "/tenant_user/" . $company_uuid . "/signed_documents/" . $pid . "_" . $jd->template_id . ".pdf"; } } } $cert_url = $baseUrl . "/tenant_user/" . $company_uuid . "/certificate/" . $pid . ".pdf"; @endphp @elseif($s->package_status != 'Completed' && $s->email_template_guid) Sign @endif

Bulk Archive Viewer

@endsection