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/resources/views/admin/easy-pays/show.blade.php
@extends('admin.layouts.app')
@section('title', "پنل مدیریت | مشاهده")
@section('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">
                            {{ Breadcrumbs::render('easy-pay-show', $easyPay) }}
                        </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>
                                            </tr>
                                        </thead>
                                            <tbody>
                                                <tr>
                                                    <td>{{ $easyPay->name }}</td>
                                                    <td>{{ to_persian_numbers($easyPay->mobile) }}</td>
                                                    <td>{{ $easyPay->description }}</td>
                                                    <td>{{ to_persian_numbers(number_format($easyPay->amount)) }}</td>
                                                    <td>
                                                        <span class="badge badge-{{ ['danger', 'success'][$easyPay->status] }}">
                                                            {{ ['در انتظار پرداخت', 'پرداخت شده'][$easyPay->status] }}
                                                        </span>
                                                    </td>
                                                    <td>{{ to_persian_numbers(jdate($easyPay->created_at)) }}</td>
                                                </tr>
                                            </tbody>
                                    </table>
                                </div>
                                @if(count($easyPay->payments))
                                    <hr>
                                    <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">IP</th>
                                                <th scope="col">وضعیت</th>
                                                <th scope="col">تاریخ</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            @foreach($easyPay->payments as $payment)
                                                <tr>
                                                    <td>{{ $payment->transaction_id }}</td>
                                                    <td>{{ $payment->reference_id }}</td>
                                                    <td>{{ __($payment->driver) }}</td>
                                                    <td>{{ $payment->ip }}</td>
                                                    <td>
                                                <span class="badge badge-{{ $payment->status ? 'success' : 'danger' }}">
                                                    @if($payment->status)
                                                        موفق
                                                    @else
                                                        ناموفق
                                                        @if($payment->error_message)
                                                            ({{ $payment->error_message }})
                                                        @endif
                                                    @endif
                                                </span>
                                                    </td>
                                                    <td>{{ to_persian_numbers(jdate($payment->created_at)) }}</td>
                                                </tr>
                                            @endforeach
                                            </tbody>
                                        </table>
                                    </div>
                                @endif
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
@endsection
@section('footer')
    <script>
        $(document).on('click', '#print', function () {
            $('#printable').printThis({header: "", footer: ""});
        });
    </script>
@endsection