ultimatepos/Modules/ManagementTools/Resources/views/executive_cockpit/partials/executive_summary.blade.php

55 lines
2.5 KiB
PHP

@php
$summary = $data['executive_summary'] ?? [];
@endphp
@if(!empty($summary))
<div class="mt-card mt-executive-summary">
<div class="mt-card-header">
<h3 class="mt-card-title">@lang('managementtools::lang.executive_summary')</h3>
<span class="label label-{{ count($summary['concerns'] ?? []) >= 2 ? 'danger' : (count($summary['highlights'] ?? []) >= 2 ? 'success' : 'warning') }}">
{{ $summary['headline'] ?? '' }}
</span>
</div>
<div class="mt-card-body">
<p class="mt-executive-summary__opening">{{ $summary['opening'] ?? '' }}</p>
<div class="row">
@if(!empty($summary['highlights']))
<div class="col-md-4">
<h4 class="mt-executive-summary__section-title mt-executive-summary__section-title--positive">
@lang('managementtools::lang.summary_highlights')
</h4>
<ul class="mt-executive-summary__list">
@foreach($summary['highlights'] as $item)
<li>{{ $item }}</li>
@endforeach
</ul>
</div>
@endif
@if(!empty($summary['concerns']))
<div class="col-md-4">
<h4 class="mt-executive-summary__section-title mt-executive-summary__section-title--negative">
@lang('managementtools::lang.summary_concerns')
</h4>
<ul class="mt-executive-summary__list">
@foreach($summary['concerns'] as $item)
<li>{{ $item }}</li>
@endforeach
</ul>
</div>
@endif
@if(!empty($summary['watch_items']))
<div class="col-md-4">
<h4 class="mt-executive-summary__section-title mt-executive-summary__section-title--watch">
@lang('managementtools::lang.summary_watch_items')
</h4>
<ul class="mt-executive-summary__list">
@foreach($summary['watch_items'] as $item)
<li>{{ $item }}</li>
@endforeach
</ul>
</div>
@endif
</div>
</div>
</div>
@endif