-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from TappNetwork/add_custom_presentation
Add the ability to customize the presentation
- Loading branch information
Showing
5 changed files
with
266 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,12 @@ | |
// ], | ||
], | ||
|
||
'custom_audits_view' => false, | ||
|
||
'custom_view_parameters' => [ | ||
], | ||
|
||
'mapping' => [ | ||
], | ||
|
||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,26 @@ | ||
@php | ||
$data = isset($state) ? $state : $getState() | ||
@endphp | ||
|
||
<div class="my-2 text-sm font-medium tracking-tight"> | ||
@foreach($getState() ?? [] as $key => $value) | ||
<span class="inline-block p-1 mr-1 rounded-md whitespace-normal text-gray-700 dark:text-gray-200 bg-gray-500/10"> | ||
{{ $key }} | ||
</span> | ||
@unless(is_array($value)) | ||
{{ $value }} | ||
@else | ||
<span class="divide-x divide-solid divide-gray-200 dark:divide-gray-700"> | ||
@foreach ($value as $nestedValue) | ||
{{$nestedValue['id']}} | ||
@endforeach | ||
</span> | ||
@endunless | ||
@endforeach | ||
<ul> | ||
@foreach($data ?? [] as $key => $value) | ||
<li> | ||
<span class="inline-block rounded-md whitespace-normal text-gray-700 dark:text-gray-200 bg-gray-500/10"> | ||
{{ Str::title($key) }}: | ||
</span> | ||
<span class="font-semibold"> | ||
@unless(is_array($value)) | ||
{{ $value }} | ||
@else | ||
<span class="divide-x divide-solid divide-gray-200 dark:divide-gray-700"> | ||
@foreach ($value as $nestedValue) | ||
{{$nestedValue['id']}} | ||
@endforeach | ||
</span> | ||
@endunless | ||
</span> | ||
</li> | ||
@endforeach | ||
</ul> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{{-- add your custom code here --}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters