Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
707 B
PHP
Raw Permalink Normal View History

@isset($title)
<div class="tw-border-b tw-font-semibold">
{{ $title }}
</div>
@endisset
<div class="tw-flex tw-flex-wrap" @if(! $responsive) style="width: {{ $rowWidth }}px;" @endif {{ $attributes }}>
@foreach($graphs as $graph)
<x-graph
:type="$type"
:loading="$loading"
:aspect="$aspect"
:port="$port"
:device="$device"
:legend="$attributes->get('legend', 'no')"
:height="$attributes->get('height', 150)"
:vars="$graph"
{{ $attributes->class(['lg:tw-w-1/4 sm:tw-w-1/2 tw-w-full' => $responsive]) }}></x-graph>
@endforeach
</div>