@php
if (!function_exists('getContractGPS')) {
function getContractGPS($point) {
if($point != "") {
$coordinates = unpack('x/x/x/x/corder/Ltype/dlat/dlon', $point);
return $coordinates['lat'].", ".$coordinates['lon'];
}
else {
return "";
}
}
}
if (!function_exists('getContractTitle')) {
function getContractTitle($key, $dictionary, $data) {
$title = $key;
if( isset($dictionary[$key]) )
$title = $dictionary[$key]->lang(app('translator')->getLocale(), $data);
return $title;
}
}
$title = [];
$data = [];
foreach( \App\Translation::where('device','audit')->get() as $translation )
{
$title[ $translation->key ] = $translation;
}
@endphp
{{--
--}}
{{ getContractTitle('certificate.of.completion', $title, $data) }} | ||
{{ getContractTitle('document.subject', $title, $data) }}: {{ $contract->name }} | ||
{{ getContractTitle('document.pages', $title, $data) }}: {{ $pages }} | {{ getContractTitle('originator', $title, $data) }}: | |
{{ getContractTitle('location', $title, $data) }}: Everprove Ledger | {{ $master->name }} | |
{{ $master->email }} | ||
{{ getContractTitle('partys', $title, $data) }} | ||
{{ getContractTitle('originator', $title, $data) }}: | {{ getContractTitle('name', $title, $data) }}: {{ $master->name }} | Email: {{ $master->email }} |
GPS: {!! getContractGPS($master->pivot->gps) !!} | IP: | |
{{ getContractTitle('recipient', $title, $data) }}: | {{ $slave->name }} | {{ $slave->email }} |
GPS: {!! getContractGPS($slave->pivot->gps) !!} | IP: | |
{{ getContractTitle('signer.events', $title, $data) }} | {{ getContractTitle('signature', $title, $data) }} | {{ getContractTitle('timestamp', $title, $data) }} |
{{ $master->name }} | @if( $master && $master->pivot->signature_img )
| {{ getContractTitle('signed', $title, $data) }}: {{ $master->pivot->signature_at }} |
{{ $slave->name }} | @if( $slave && $slave->pivot->signature_img )
| {{ getContractTitle('signed', $title, $data) }}: {{ $slave->pivot->signature_at }} |
{{ getContractTitle('certified.by', $title, $data) }}: | Everprove Solutions Ltd. | |
{{ getContractTitle('timestamp', $title, $data) }}: | {{ $timestamp }} | |
{{ getContractTitle('privatekey', $title, $data) }}: | {{ $privKey }} | |
{{ getContractTitle('summary.events', $title, $data) }} | {{ getContractTitle('status', $title, $data) }} | {{ getContractTitle('timestamp', $title, $data) }} |
{{ $event->user->name }} | {{ $event->eventToString($dictionary) }} | {{ $event->created_at }} |