@extends('layouts.app') @section('title', 'Package Details') @section('content')

Package Detail

ID: {{ $package->package_guid }}

@php $isAllCompleted = $email_templates->every(function($item) { return $item->email_template_status == 'Completed'; }); @endphp @if($isAllCompleted && $email_templates->count() > 0) Fully Executed @else In Progress @endif

Total Signers

{{ $email_templates->count() }}

Completed

{{ $email_templates->where('email_template_status', 'Completed')->count() }}

Pending

{{ $email_templates->where('email_template_status', 'Pending')->count() }}

Recipient Status

@forelse($email_templates as $email_template) @empty @endforelse
Signer Info Status Documents Actions
{{ substr($email_template->email_name, 0, 1) }}
{{ $email_template->email_name }}
{{ $email_template->email_id }}
@if($email_template->email_template_status == "Completed") Completed @else Pending @endif @if($email_template->email_template_status == "Completed")
@php $data = json_decode($email_template->email_template_json); @endphp @if($data) @foreach($data as $doc_details) @php $file_name = $package->package_id."_".$doc_details->template_id.".pdf"; $file_url = config('app.url').'/signed_documents/'.$file_name; @endphp {{ $doc_details->title }} @endforeach @endif
@else Waiting... @endif
@if($email_template->email_template_status == "Pending") Sign Now @else Certificate @endif
No signers found.
@endsection