@php
$pageIcon = 'icons/duotune/' . ($page['page_icon'] ?? 'abstract/abs027.svg');
$pageColor = $page['page_color'] ?? 'primary';
@endphp
{!! theme()->getSvgIcon($pageIcon, 'svg-icon-' . $pageColor . ' svg-icon-3x me-4') !!}
{{ $page['page_name'] ?? '' }}
Product:
{{ env('APP_NAME', 'We Care Cloud') }} ·
By:
We Care Cloud ·
Created:
{{ \Carbon\Carbon::parse($page['created_at'])->diffForHumans() }}
{{ '(' . \Carbon\Carbon::parse($page['created_at'])->format('d.m.Y \a\t g:i A') . ')' }}
@if($page['type'] == 'internal')
{!! $page['main_description'] ?? '' !!}
@if(!empty($page['files']))
@foreach($page['files'] as $index => $file)
@continue(!auth()->user()->hasRole($file['role_slug']))
@php
$fileUrl = $file['url'];
$fileId = 'pdf-full-' . $index;
@endphp
@push('custom-scripts')
@endpush
@endforeach
@endif
@elseif($page['type'] == 'scribe')