<?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 ? $attributes->all() : [])); ?>
<?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): ?>
<?php $attributes = $attributes->except(\App\View\Components\AppLayout::ignoredParameterNames()); ?>
<?php endif; ?>
<?php $component->withAttributes([]); ?>
     <?php $__env->slot('header', null, []); ?> 
        <div class="flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
            <h2 class="font-semibold text-xl text-gray-800 dark:text-gray-200 leading-tight"><?php echo e(__('Ticket de venta')); ?> #<?php echo e($sale->id); ?></h2>
            <a href="<?php echo e(route('pos.index')); ?>" class="text-sm text-indigo-600 dark:text-indigo-400 hover:underline"><?php echo e(__('Volver al POS')); ?></a>
        </div>
     <?php $__env->endSlot(); ?>

    <div class="py-8">
        <div class="max-w-lg mx-auto sm:px-6 lg:px-8">
            <div class="bg-white dark:bg-gray-800 shadow-sm sm:rounded-lg p-6 text-sm text-gray-700 dark:text-gray-300 space-y-4">
                <p><?php echo e($sale->created_at->translatedFormat('d M Y H:i')); ?>

                    <?php if($sale->cashier): ?>
                        · <?php echo e($sale->cashier->name); ?>

                    <?php endif; ?>
                </p>
                <?php if($sale->productReservation): ?>
                    <p class="rounded-md bg-indigo-500/10 border border-indigo-500/30 px-3 py-2 text-indigo-800 dark:text-indigo-200">
                        <?php echo e(__('Reserva clínica #:id', ['id' => $sale->productReservation->id])); ?>

                        <?php if($sale->productReservation->patient): ?>
                            · <?php echo e($sale->productReservation->patient->name); ?>

                        <?php endif; ?>
                    </p>
                <?php endif; ?>
                <?php if($sale->notes): ?>
                    <p class="text-gray-500"><?php echo e($sale->notes); ?></p>
                <?php endif; ?>
                <table class="w-full">
                    <tbody class="divide-y divide-gray-200 dark:divide-gray-700">
                    <?php $__currentLoopData = $sale->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td class="py-2 pr-2"><?php echo e($item->product_name); ?> x<?php echo e($item->quantity); ?></td>
                            <td class="py-2 text-right font-mono"><?php echo e(number_format((float) $item->line_total, 2)); ?></td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </tbody>
                    <tfoot>
                    <tr>
                        <td class="pt-4 font-semibold text-gray-900 dark:text-gray-100"><?php echo e(__('Total')); ?></td>
                        <td class="pt-4 text-right font-mono font-semibold text-gray-900 dark:text-gray-100"><?php echo e(number_format((float) $sale->total, 2)); ?></td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </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:\wamp64\www\vet\resources\views/pos/show.blade.php ENDPATH**/ ?>