<?php
/*
 * This file is part of the CLIENTXCMS project.
 * It is the property of the CLIENTXCMS association.
 *
 * Personal and non-commercial use of this source code is permitted.
 * However, any use in a project that generates profit (directly or indirectly),
 * or any reuse for commercial purposes, requires prior authorization from CLIENTXCMS.
 *
 * To request permission or for more information, please contact our support:
 * https://clientxcms.com/client/support
 *
 * Learn more about CLIENTXCMS License at:
 * https://clientxcms.com/eula
 *
 * Year: 2025
 */
?>

@section('scripts')
<script src="{{ Vite::asset('resources/global/js/admin/customcanvas.js')  }}" type="module"></script>
@endsection
<div class="flex flex-col">
    <div class="card-heading">
        <h3 class="text-xs font-semibold uppercase text-gray-600 dark:text-gray-400">{{ __('admin.dashboard.widgets.customer_confirmation') }}</h3>
    </div>
    <div class="-m-1.5 overflow-x-auto">
        <div class="p-1.5 min-w-full inline-block align-middle">

                @if ($dto->isEmpty())
            <p>{{ __("global.no_results") }}
               @else
            <div class="chart-responsive">
                <canvas height="140" is="custom-canvas" data-labels="{{ $dto->getLabels() }}" data-backgrounds="{{ $dto->getColors() }}" data-set="{{ $dto->getValues() }}" data-titles="{{ $dto->getTitles() }}"></canvas>
            </div>
                @endif
        </div>
    </div>
</div>

