Skip to content

Commit

Permalink
updated receipt advanced identity show profile
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-yoti committed Jul 15, 2024
1 parent 9c0d163 commit a7473b9
Show file tree
Hide file tree
Showing 3 changed files with 88 additions and 74 deletions.
72 changes: 36 additions & 36 deletions examples/digitalidentity/resources/views/partial/report.blade.php
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
@if (isset($key) && is_array($key))
@foreach ($report as $key => $value)
<table>
<thead>
<tr>
<td>
<H2>{{ $key }}</H2>
</td>
</tr>
</thead>
<tbody>
@foreach ($value as $name => $result)
@if (is_array($result))
@foreach ($result as $data => $view)
@if (is_array($view))
@foreach ($view as $key2 => $value2)
@if (is_array($value2))
{{json_encode($value2)}}
@else
<tr>
<td><b>{{ $key2 }}</b><br>{{ $value2 }}</td>
</tr>
@endif
@endforeach
@else
<tr>
<td><b>{{ $data }}</b><br>{{ $view }}</td>
</tr>
@endif
@endforeach
@else
<tr>
@foreach ($report as $key => $value)
<table>
<thead>
<tr>
<td>
<H2>{{ $key }}</H2>
</td>
</tr>
</thead>
<tbody>
@foreach ($value as $name => $result)
@if (isset($result) && is_array($result))
@foreach ($result as $data => $view)
@if (is_array($view))
@foreach ($view as $key2 => $value2)
@if (is_array($value2))
{{json_encode($value2)}}
@else
<tr>
<td><b>{{ $key2 }}</b><br>{{ $value2 }}</td>
</tr>
@endif
@endforeach
@else
<tr>
<td><b>{{ $data }}</b><br>{{ $view }}</td>
</tr>
@endif
@endforeach
@else
<tr>
<td><b>{{ $name }}</b><br>{{ $result }}</td>
</tr>
@endif
@endforeach
</tr>
@endif
@endforeach

</tbody>
</table>
</tbody>
</table>
@endforeach
@else
<table>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function show(YotiClient $client)
$scenario = (new DynamicScenarioBuilder())
->withPolicy($policy)
->withCallbackEndpoint('/profile')
->withExtension($locationConstraint)
//->withExtension($locationConstraint)
->build();

return view('share', [
Expand Down
88 changes: 51 additions & 37 deletions examples/profile/resources/views/partial/report.blade.php
Original file line number Diff line number Diff line change
@@ -1,40 +1,54 @@
@foreach ($report as $key => $value)
<table>
<thead>
<tr>
<td>
<H2>{{ $key }}</H2>
</td>
</tr>
</thead>
<tbody>
@if (isset($value) && is_array($value))
@foreach ($value as $name => $result)
@if (is_array($result))
@foreach ($result as $data => $view)
@if (is_array($view))
@foreach ($view as $key2 => $value2)
@if (is_array($value2))
{{json_encode($value2)}}
@else
<tr>
<td><b>{{ $key2 }}</b><br>{{ $value2 }}</td>
</tr>
@endif
@endforeach
@else
<tr>
<td><b>{{ $data }}</b><br>{{ $view }}</td>
</tr>
@endif
@endforeach
@else
<tr>
@if (isset($key) && is_array($key))
@foreach ($report as $key => $value)
<table>
<thead>
<tr>
<td>
<H2>{{ $key }}</H2>
</td>
</tr>
</thead>
<tbody>
@foreach ($value as $name => $result)
@if (isset($result) && is_array($result))
@foreach ($result as $data => $view)
@if (is_array($view))
@foreach ($view as $key2 => $value2)
@if (is_array($value2))
{{json_encode($value2)}}
@else
<tr>
<td><b>{{ $key2 }}</b><br>{{ $value2 }}</td>
</tr>
@endif
@endforeach
@else
<tr>
<td><b>{{ $data }}</b><br>{{ $view }}</td>
</tr>
@endif
@endforeach
@else
<tr>
<td><b>{{ $name }}</b><br>{{ $result }}</td>
</tr>
@endif
</tr>
@endif
@endforeach

</tbody>
</table>
@endforeach
@else
<table>
@foreach ($report as $key => $value)
<tr>
<td>
{{ $key }}<br/>
<pre>
{!! json_encode($value, JSON_PRETTY_PRINT) !!}
</pre>
</td>
</tr>
@endforeach
@endif
</tbody>
</table>
@endforeach
@endif

0 comments on commit a7473b9

Please sign in to comment.