@extends('layouts.app')
@section('title','Reports & BI')
@section('crumbs','<b>Reports & BI</b>')
@section('content')
@foreach($catalog as $gkey => $g)
<div class="card"><div class="card-h"><h2>{{ $g['label'] }}</h2></div><div class="card-b">
<div class="mod-list">
@foreach($g['reports'] as $slug => $def)
<a class="rlink" href="{{ route('reports.show',$slug) }}">{{ $def[0] }}<small>{{ implode(' · ', array_merge($def[1], array_map(fn($f)=>ucwords(str_replace('_',' ',$f)), $def[2]))) ?: 'No filters' }} · CSV export</small></a>
@endforeach
</div>
</div></div>
@endforeach
@endsection
