<?php if (isset($component)) { $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54 = $attributes; } ?>
<?php $component = App\View\Components\AppLayout::resolve([] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('app-layout'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(App\View\Components\AppLayout::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <?php echo e(__('Dashboard')); ?>

     <?php $__env->endSlot(); ?>

    <div class="p-6 space-y-6">
        <?php
            $now = now();
            $startOfMonth = $now->copy()->startOfMonth();
            $endOfMonth = $now->copy()->endOfMonth();
            $startWeekday = (int) $startOfMonth->dayOfWeekIso; // 1 (Mon) - 7 (Sun)
            $daysInMonth = $endOfMonth->day;

            $calendarCells = [];
            for ($i = 1; $i < $startWeekday; $i++) {
                $calendarCells[] = null;
            }
            for ($day = 1; $day <= $daysInMonth; $day++) {
                $calendarCells[] = $day;
            }
            while (count($calendarCells) % 7 !== 0) {
                $calendarCells[] = null;
            }
            $weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
        ?>

        <section>
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6">
                
                <?php if (isset($component)) { $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.widget-card','data' => ['title' => 'Tasks','subtitle' => 'Your to-do list (placeholder)']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('dashboard.widget-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Tasks','subtitle' => 'Your to-do list (placeholder)']); ?>
                    <ul class="space-y-2">
                        <?php $__currentLoopData = [
                            ['label' => 'Review today\'s leads', 'badge' => 'Today'],
                            ['label' => 'Follow up on test drives', 'badge' => 'Today'],
                            ['label' => 'Prepare tomorrow\'s showroom', 'badge' => 'Tomorrow'],
                            ['label' => 'Update pipeline notes', 'badge' => 'Tomorrow'],
                            ['label' => 'Check outstanding valuations', 'badge' => 'Fri'],
                            ['label' => 'Plan weekly team huddle', 'badge' => 'Mon'],
                        ]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $task): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li class="flex items-center justify-between gap-3">
                                <div class="flex items-center gap-3">
                                    <input
                                        type="checkbox"
                                        class="h-4 w-4 rounded border-gray-300 text-red-600 focus:ring-red-500"
                                    >
                                    <span class="text-sm text-gray-800">
                                        <?php echo e($task['label']); ?>

                                    </span>
                                </div>
                                <span class="inline-flex items-center rounded-full bg-gray-100 px-2 py-0.5 text-xs font-medium text-gray-600">
                                    <?php echo e($task['badge']); ?>

                                </span>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>

                     <?php $__env->slot('actions', null, []); ?> 
                        <a href="#"
                           class="inline-flex items-center text-xs font-medium text-red-600 hover:text-red-700">
                            View all tasks
                        </a>
                     <?php $__env->endSlot(); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $attributes = $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $component = $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>

                
                <?php if (isset($component)) { $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.widget-card','data' => ['title' => 'Notifications','subtitle' => 'Recent alerts (placeholder)']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('dashboard.widget-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Notifications','subtitle' => 'Recent alerts (placeholder)']); ?>
                    <ul class="space-y-2">
                        <?php
                            $notifications = [
                                ['type' => 'info', 'message' => 'New lead assigned to you.', 'time' => '5m ago'],
                                ['type' => 'warning', 'message' => '2 valuations are approaching due date.', 'time' => '24m ago'],
                                ['type' => 'info', 'message' => 'Team meeting scheduled for tomorrow.', 'time' => '1h ago'],
                                ['type' => 'info', 'message' => 'Stock update completed.', 'time' => '3h ago'],
                                ['type' => 'warning', 'message' => 'One deal file still pending documents.', 'time' => 'Today'],
                            ];
                        ?>
                        <?php $__currentLoopData = $notifications; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $notification): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php
                                $isWarning = $notification['type'] === 'warning';
                                $dotClasses = $isWarning
                                    ? 'bg-amber-400'
                                    : 'bg-blue-400';
                            ?>
                            <li class="flex items-start justify-between gap-3">
                                <div class="flex items-start gap-2">
                                    <span class="mt-1 h-2 w-2 rounded-full <?php echo e($dotClasses); ?>"></span>
                                    <p class="text-sm text-gray-800">
                                        <?php echo e($notification['message']); ?>

                                    </p>
                                </div>
                                <span class="shrink-0 text-xs text-gray-400">
                                    <?php echo e($notification['time']); ?>

                                </span>
                            </li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>

                     <?php $__env->slot('actions', null, []); ?> 
                        <button
                            type="button"
                            disabled
                            class="inline-flex items-center rounded-full border border-gray-200 bg-gray-50 px-3 py-1 text-xs font-medium text-gray-500 cursor-not-allowed"
                        >
                            Mark all as read
                        </button>
                     <?php $__env->endSlot(); ?>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $attributes = $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $component = $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>

                
                <?php if (isset($component)) { $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.widget-card','data' => ['title' => 'Calendar','subtitle' => ''.e($now->format('F Y')).'','xData' => '{ selectedDay: '.e($now->day).' }']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('dashboard.widget-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Calendar','subtitle' => ''.e($now->format('F Y')).'','x-data' => '{ selectedDay: '.e($now->day).' }']); ?>
                    <div class="space-y-3">
                        <div class="grid grid-cols-7 text-[10px] font-medium text-gray-500 gap-1">
                            <?php $__currentLoopData = $weekdays; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dayLabel): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <div class="text-center">
                                    <?php echo e($dayLabel); ?>

                                </div>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>

                        <div class="grid grid-cols-7 text-xs gap-1">
                            <?php $__currentLoopData = $calendarCells; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $day): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <?php if($day === null): ?>
                                    <div class="aspect-square rounded-md"></div>
                                <?php else: ?>
                                    <button
                                        type="button"
                                        class="aspect-square w-full flex items-center justify-center rounded-md"
                                        :class="selectedDay === <?php echo e($day); ?>

                                            ? 'bg-red-600 text-white font-semibold ring-2 ring-red-500/60'
                                            : 'text-gray-700 bg-gray-50'"
                                        @click="selectedDay = <?php echo e($day); ?>"
                                    >
                                        <?php echo e($day); ?>

                                    </button>
                                <?php endif; ?>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </div>

                        <div class="pt-2 border-t border-gray-100 space-y-1">
                            <p class="text-xs font-medium text-gray-600">
                                Upcoming
                            </p>
                            <ul class="space-y-1">
                                <li class="text-xs text-gray-700">
                                    Showroom huddle &mdash; Tomorrow 08:30
                                </li>
                                <li class="text-xs text-gray-700">
                                    Weekly sales review &mdash; Fri 16:00
                                </li>
                            </ul>
                        </div>
                    </div>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $attributes = $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $component = $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>

                
                <?php if (isset($component)) { $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.dashboard.widget-card','data' => ['title' => 'Quick Notes','subtitle' => 'Personal scratchpad (placeholder)']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('dashboard.widget-card'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Quick Notes','subtitle' => 'Personal scratchpad (placeholder)']); ?>
                    <textarea
                        class="min-h-[120px] w-full rounded-lg border border-dashed border-gray-300 bg-gray-50 p-3 text-sm text-gray-700 focus:border-red-500 focus:ring-red-500"
                        placeholder="Jot down quick notes for today (demo only, not saved yet)..."
                    ></textarea>

                    <p class="mt-3 text-xs text-gray-400">
                        This will become notes &amp; reminders in Sprint 2.
                    </p>
                 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $attributes = $__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__attributesOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e)): ?>
<?php $component = $__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e; ?>
<?php unset($__componentOriginal46d7df772faf884d6cbb5c75b0b04b6e); ?>
<?php endif; ?>
            </div>
        </section>
    </div>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $attributes = $__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__attributesOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54)): ?>
<?php $component = $__componentOriginal9ac128a9029c0e4701924bd2d73d7f54; ?>
<?php unset($__componentOriginal9ac128a9029c0e4701924bd2d73d7f54); ?>
<?php endif; ?>
<?php /**PATH C:\Projects\mtt-os\resources\views\dashboard\index.blade.php ENDPATH**/ ?>