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/account/points/index.blade.php
@extends('layouts.app')
@section('content')
    <div class="container my-5 body-content">
        <div class="row">
            <div class="col-lg-3 col-sm-12">
                @include('account.sidebar')
            </div>
            <div class="col-lg-9 col-sm-12">
                <div class="card">
                    <h5 class="card-header">{{ __('Points') }}
                        @if(settings('point-exchange-rate') > 0)
                            <span class="float-end">
                                <a href="{{ route('account.points.show-exchange') }}" class="btn btn-sm btn-primary">
                                    <span class="fa fa-exchange-alt"></span> {{ __('Convert points to credits') }}
                                </a>
                            </span>
                        @endif
                    </h5>
                    <div class="card-body">
                        <table class="table table-sm">
                            <thead class="thead-dark">
                                <tr>
                                    <th scope="col">{{ __('Point') }}</th>
                                    <th scope="col">{{ __('Description') }}</th>
                                    <th scope="col">{{ __('Date') }}</th>
                                    <th scope="col">{{ __('Actions') }}</th>
                                </tr>
                            </thead>
                            <tbody>
                                @foreach($points as $point)
                                    <tr>
                                        <td>
                                            <span style="direction: ltr !important;"
                                                  class="badge bg-{{ $point->amount > 0 ? 'success' : 'danger' }}">
                                                {{ to_persian_numbers($point->amount) }}
                                            </span>
                                        </td>
                                        <td>{{ words($point->description, 15) }}</td>
                                        <td>{{ to_persian_numbers(jdate($point->created_at)) }}</td>
                                        <td>
                                            <a href="{{ route('account.points.show', $point->id) }}" class="btn btn-info btn-sm">
                                                <span class="fa fa-info-circle"></span> {{ __('Detail') }}
                                            </a>
                                        </td>
                                    </tr>
                                @endforeach
                            </tbody>
                        </table>
                        {{ $points->links() }}
                        <div class="row mt-2">
                            <div class="col-lg-6 offset-lg-3 col-12">
                                <div class="alert alert-primary text-center" role="alert">
                                    {{ __('Current Point') }}: <u>{{ to_persian_numbers(auth()->user()->point) }}</u>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection