HEX
Server: LiteSpeed
System: Linux sv4.hami.host 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: armgroup (1008)
PHP: 8.2.32
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, mail, socket_create, socket_create_listen, socket_create_pair, link, dl, openlog, syslog, stream_socket_server, curl_multi_init
Upload Files
File: /home/armgroup/libs/storage/framework/views/13f24a2f43a7985231758137341430f53a7f38b0.php
<?php $__env->startSection('title', "پنل مدیریت | چاپ سفارش"); ?>
<?php $__env->startSection('content'); ?>
    <div class="content-wrapper">
        <div class="content-header">
            <div class="container-fluid">
                <div class="row mb-2">
                    <div class="col-sm-6">
                        <button class="btn btn-primary" type="button" id="print">
                            <span class="fa fa-print"></span> چاپ کن
                        </button>
                    </div>
                    <div class="col-sm-6">
                        <ol class="breadcrumb float-sm-left">
                            <?php echo e(Breadcrumbs::render('orders-show', $order)); ?>

                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <section class="content" id="printable">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card card-primary">
                            <div class="card-body">
                                <div class="table-responsive">
                                    <table class="table table-hover table-condensed table-bordered table-striped tbl-card">
                                        <thead class="thead">
                                            <tr>
                                                <th scope="col">خریدار</th>
                                                <th scope="col">موبایل</th>
                                                <th scope="col">کد پیگیری</th>
                                                <th scope="col">قیمت (تومان)</th>
                                                <th scope="col">نوع پرداخت</th>
                                                <th scope="col">وضعیت</th>
                                                <th scope="col">تاریخ ثبت سفارش</th>
                                            </tr>
                                        </thead>
                                            <tbody>
                                                <tr>
                                                    <td><?php echo e($order->user->name); ?></td>
                                                    <td><?php echo e(to_persian_numbers($order->user->mobile)); ?></td>
                                                    <td><?php echo e($order->tracking_code); ?></td>
                                                    <td><?php echo e(to_persian_numbers(number_format($order->price))); ?></td>
                                                    <td><?php echo e($order->payment_type->description); ?></td>
                                                    <td><?php echo e($order->status->description); ?></td>
                                                    <td><?php echo e(to_persian_numbers(jdate($order->created_at))); ?></td>
                                                </tr>
                                            </tbody>
                                    </table>
                                </div>
                                <div class="table-responsive">
                                    <table class="table table-hover table-condensed table-bordered table-striped tbl-card">
                                        <thead>
                                            <tr class="text-center">
                                                <th>#</th>
                                                <th>نام</th>
                                                <th>کد</th>
                                                <th>تعداد</th>
                                                <th>قیمت واحد</th>
                                                <th>تخفیف واحد</th>
                                                <th>جمع کل</th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <?php $__currentLoopData = $orderProducts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $orderProduct): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr class="text-center">
                                                    <td><?php echo e($loop->iteration); ?></td>
                                                    <td>
                                                        <?php if($orderProduct->product->slug): ?>
                                                            <a href="<?php echo e(route('products.show', $orderProduct->product->slug)); ?>"
                                                               class="text-dark"
                                                               target="_blank">
                                                                <?php echo e($orderProduct->name); ?>

                                                            </a>
                                                        <?php else: ?>
                                                            <?php echo e($orderProduct->name); ?>

                                                        <?php endif; ?>
                                                    </td>
                                                    <td><?php echo e($orderProduct->product->code); ?></td>
                                                    <td><?php echo e(to_persian_numbers($orderProduct->quantity)); ?></td>
                                                    <td><?php echo e(to_persian_numbers(number_format($orderProduct->price + $orderProduct->discount))); ?></td>
                                                    <td><?php echo e(to_persian_numbers(number_format($orderProduct->discount))); ?></td>
                                                    <td><?php echo e(to_persian_numbers(number_format($orderProduct->price * $orderProduct->quantity))); ?></td>
                                                </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        </tbody>
                                        <tfoot>
                                        <?php if($order->discount_code_price): ?>
                                            <tr>
                                                <th colspan="6">
                                                    کد تخفیف
                                                    <?php if($order->discountCode->title): ?>
                                                        <a href="<?php echo e(route('admin.discounts.show', $order->discountCode->id)); ?>"
                                                           target="_blank">
                                                            (<?php echo e($order->discountCode->title); ?>)
                                                        </a>
                                                    <?php endif; ?>
                                                </th>
                                                <td class="text-center"><?php echo e(to_persian_numbers(number_format($order->discount_code_price))); ?></td>
                                            </tr>
                                        <?php endif; ?>
                                        <?php if($order->discount): ?>
                                            <tr>
                                                <th colspan="6">مجموع تخفیف</th>
                                                <td class="text-center"><?php echo e(to_persian_numbers(number_format($order->discount + $order->discount_code_price))); ?></td>
                                            </tr>
                                        <?php endif; ?>
                                        <tr>
                                            <th colspan="6">هزینه ارسال
                                                (<?php echo e(is_null($order->shipping_type) ? 'رایگان' : \App\Models\Order::SHIPPING_TRANSLATE[$order->shipping_type]); ?>

                                                )
                                            </th>
                                            <td class="text-center">
                                                <?php echo e(to_persian_numbers(number_format($order->shipping_price))); ?>

                                            </td>
                                        </tr>
                                        <tr>
                                            <th colspan="6">جمع کل</th>
                                            <td class="text-center"><?php echo e(to_persian_numbers(number_format($order->price))); ?></td>
                                        </tr>
                                        </tfoot>
                                    </table>
                                </div>
                                <div class="table-responsive">
                                    <table
                                        class="table table-hover table-condensed table-bordered table-striped tbl-card">
                                        <thead>
                                        <tr>
                                            <th>نام گیرنده</th>
                                            <th>موبایل</th>
                                            <th>کدملی</th>
                                            <th>استان</th>
                                            <th>شهر</th>
                                            <th>کدپستی</th>
                                            <th>پلاک</th>
                                            <th>واحد</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <tr>
                                            <td><?php echo e($address->name); ?></td>
                                            <td><?php echo e(to_persian_numbers($address->mobile)); ?></td>
                                            <td><?php echo e(to_persian_numbers($address->national_code)); ?></td>
                                            <td><?php echo e($address->city->province->name); ?></td>
                                            <td><?php echo e($address->city->name); ?></td>
                                            <td><?php echo e(to_persian_numbers($address->postal_code)); ?></td>
                                            <td><?php echo e(to_persian_numbers($address->plaque)); ?></td>
                                            <td><?php echo e(to_persian_numbers($address->floor)); ?></td>
                                        </tr>
                                        </tbody>
                                        <tfoot>
                                        <tr>
                                            <th>آدرس کامل</th>
                                            <td colspan="7"><?php echo e($address->address); ?></td>
                                        </tr>
                                        <?php if($order->delivery_date && $order->delivery_time): ?>
                                            <tr>
                                                <th colspan="4">تاریخ تحویل</th>
                                                <th colspan="4">زمان تحویل</th>
                                            </tr>
                                            <tr>
                                                <td colspan="4">
                                                    <?php echo e(to_persian_numbers(jdate($order->delivery_date)->format('Y/m/d'))); ?>

                                                </td>
                                                <td colspan="4">
                                                    <?php echo e(to_persian_numbers($order->delivery_time)); ?>

                                                </td>
                                            </tr>
                                        <?php endif; ?>
                                        </tfoot>
                                    </table>
                                </div>
                                <?php if($order->description): ?>
                                    <div>
                                        <strong>توضیحات کاربر: </strong>
                                        <?php echo e($order->description); ?>

                                    </div>
                                <?php endif; ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('footer'); ?>
    <script>
        $(document).on('click', '#print', function () {
            $('#printable').printThis({header: "", footer: ""});
        });
    </script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/armgroup/libs/resources/views/admin/orders/show.blade.php ENDPATH**/ ?>