@props([
    'paginator',
    'showPerPage' => false,
])

@php
    $from = $paginator->firstItem();
    $to = $paginator->lastItem();
    $total = $paginator->total();
@endphp

@if ($total > 0)
    <div class="erp-pagination d-flex flex-wrap align-items-center justify-content-between gap-3">
        <div class="small text-muted">
            {{ __('common.showing_range', [
                'from' => $from ?? 0,
                'to' => $to ?? 0,
                'total' => $total,
            ]) }}
        </div>
        <div class="d-flex justify-content-end flex-grow-1">
            {{ $paginator->onEachSide(1)->links() }}
        </div>
    </div>
@endif
