@extends('admin.layout.master')

@section('title', 'Panel')

@section('breadcrumb')
    <div class="container-fluid px-4">
        <nav aria-label="breadcrumb">
            <ol class="breadcrumb my-0">
                <li class="breadcrumb-item"><a href="{{ route('admin.dashboard.index') }}">Anasayfa</a>
                </li>
                <li class="breadcrumb-item active"><span>Panel</span>
                </li>
            </ol>
        </nav>
    </div>
@stop

@section('content')

    <div class="container-lg px-4">

        <div class="tab-content rounded-bottom">
            <div class="tab-pane p-3 active preview" role="tabpanel" id="preview-1009">
                <div class="card-group">

                    <div class="card">
                        <div class="card-body">
                            <div class="text-body-secondary text-end">
                                <svg class="icon icon-xxl">
                                    <use xlink:href="{{ URL::to('admin/vendors/@coreui/icons/svg/free.svg#cil-list-rich') }}"></use>
                                </svg>
                            </div>
                            <div class="fs-4 fw-semibold">{{ $total['pages']['count'] }}</div>
                            <div class="small text-body-secondary text-uppercase fw-semibold text-truncate">{{ $total['pages']['title'] }}</div>
                            <div class="progress progress-thin mt-3 mb-0">
                                <div class="progress-bar bg-info" role="progressbar" style="width: {{ $total['pages']['percentage'] }}%"
                                    aria-valuenow="{{ $total['pages']['count'] }}" aria-valuemin="0"
                                    aria-valuemax="{{ $total['pages']['max'] }}"></div>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-body">
                            <div class="text-body-secondary text-end">
                                <svg class="icon icon-xxl">
                                    <use xlink:href="{{ URL::to('admin/vendors/@coreui/icons/svg/free.svg#cil-clear-all') }}"></use>
                                </svg>
                            </div>
                            <div class="fs-4 fw-semibold">{{ $total['banners']['count'] }}</div>
                            <div class="small text-body-secondary text-uppercase fw-semibold text-truncate">{{ $total['banners']['title'] }}</div>
                            <div class="progress progress-thin mt-3 mb-0">
                                <div class="progress-bar bg-info" role="progressbar" style="width: {{ $total['banners']['percentage'] }}%"
                                    aria-valuenow="{{ $total['banners']['count'] }}" aria-valuemin="0"
                                    aria-valuemax="{{ $total['banners']['max'] }}"></div>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-body">
                            <div class="text-body-secondary text-end">
                                <svg class="icon icon-xxl">
                                    <use xlink:href="{{ URL::to('admin/vendors/@coreui/icons/svg/free.svg#cil-window-restore') }}"></use>
                                </svg>
                            </div>
                            <div class="fs-4 fw-semibold">{{ $total['popups']['count'] }}</div>
                            <div class="small text-body-secondary text-uppercase fw-semibold text-truncate">{{ $total['popups']['title'] }}</div>
                            <div class="progress progress-thin mt-3 mb-0">
                                <div class="progress-bar bg-info" role="progressbar" style="width: {{ $total['popups']['percentage'] }}%"
                                    aria-valuenow="{{ $total['popups']['count'] }}" aria-valuemin="0"
                                    aria-valuemax="{{ $total['popups']['max'] }}"></div>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-body">
                            <div class="text-body-secondary text-end">
                                <svg class="icon icon-xxl">
                                    <use xlink:href="{{ URL::to('admin/vendors/@coreui/icons/svg/free.svg#cil-user') }}"></use>
                                </svg>
                            </div>
                            <div class="fs-4 fw-semibold">{{ $total['users']['count'] }}</div>
                            <div class="small text-body-secondary text-uppercase fw-semibold text-truncate">{{ $total['users']['title'] }}</div>
                            <div class="progress progress-thin mt-3 mb-0">
                                <div class="progress-bar bg-danger" role="progressbar" style="width: {{ $total['users']['percentage'] }}%"
                                    aria-valuenow="{{ $total['users']['count'] }}" aria-valuemin="0"
                                    aria-valuemax="{{ $total['users']['max'] }}"></div>
                            </div>
                        </div>
                    </div>

                    <div class="card">
                        <div class="card-body">
                            <div class="text-body-secondary text-end">
                                <svg class="icon icon-xxl">
                                    <use xlink:href="{{ URL::to('admin/vendors/@coreui/icons/svg/free.svg#cil-language') }}"></use>
                                </svg>
                            </div>
                            <div class="fs-4 fw-semibold">{{ $total['languages']['count'] }}</div>
                            <div class="small text-body-secondary text-uppercase fw-semibold text-truncate">{{ $total['languages']['title'] }}</div>
                            <div class="progress progress-thin mt-3 mb-0">
                                <div class="progress-bar bg-warning" role="progressbar" style="width: {{ $total['languages']['percentage'] }}%"
                                    aria-valuenow="{{ $total['languages']['count'] }}" aria-valuemin="0"
                                    aria-valuemax="{{ $total['languages']['max'] }}"></div>
                            </div>
                        </div>
                    </div>

                </div>
            </div>
        </div>
    </div>

@stop

@section('css')
@stop

@section('js')
@stop
