<template>
    <div
        class="d-flex text-caption black--text"
    >

        <div
            v-if="dataprovider.initialRecordsCount > 0"
        >
            {{ 
                __('Înregistrările :from ... :to din :total.', {
                    from: dataprovider.from,
                    to: dataprovider.to,
                    total: dataprovider.total,
                }) 
            }}

            <span
                v-if="dataprovider.total < dataprovider.initialRecordsCount"
            >
                {{ __('Filtrate din :count.', {count: dataprovider.initialRecordsCount}) }}
            </span>
        </div>

        <div 
            v-if="dataprovider.last_page > 0"
            class="ml-2" 
        >
            {{ 
                __('Pagina #:current_page din :last_page.', {
                    current_page: dataprovider.current_page, 
                    last_page: dataprovider.last_page,
                }) 
            }}
        </div>
    </div>
</template>

<script>
    export default {
        props: {
            dataprovider: {required: true},        },

        name: 'CsDataTableInfo',
    }
</script>