@props([ 'headers' => [], 'empty' => __('common.table.no_records'), 'title' => null, 'createUrl' => null, 'createLabel' => __('common.actions.add_new'), 'paginator' => null, ])
@if($title || $createUrl)
@if($title){{ $title }}@endif @if($createUrl)+ {{ $createLabel }}@endif
@endif
@if(count($headers)) @foreach($headers as $header) @endforeach @endif {{ $slot }}
{{ $header }}
@if($paginator && $paginator->hasPages())
{{ $paginator->links() }}
@endif