Current File : /home/tradevaly/text.tradevaly.com.bd/resources/views/page.blade.php
@if ($paginator->hasPages())
    <style type="text/css">
		.my-active span{
			background-color: #10617a !important;
			color: white !important;
			border-color: #10617a !important;
		    padding: 11px 20px;
		}
		.pagination{width:100%;}
		.pagination ul{width:100%;}
		.pagination ul li{padding:10px; background: #d1d1d1;float:left; list-style:none;}
	</style>
	<div class="pagination">
    <ul class="pager">
       
        @if ($paginator->onFirstPage())
            <li class="disabled"><span>← Previous</span></li>
        @else
            <li><a href="{{ $paginator->previousPageUrl() }}" rel="prev">← Previous</a></li>
        @endif


      
        @foreach ($elements as $element)
           
            @if (is_string($element))
                <li class="disabled"><span>{{ $element }}</span></li>
            @endif


           
            @if (is_array($element))
                @foreach ($element as $page => $url)
                    @if ($page == $paginator->currentPage())
                        <li class="active my-active"><span>{{ $page }}</span></li>
                    @else
                        <li><a href="{{ $url }}">{{ $page }}</a></li>
                    @endif
                @endforeach
            @endif
        @endforeach


        
        @if ($paginator->hasMorePages())
            <li><a href="{{ $paginator->nextPageUrl() }}" rel="next">Next →</a></li>
        @else
            <li class="disabled"><span>Next →</span></li>
        @endif
    </ul>
    </div>
@endif