WordPress

Briefly unavailable for scheduled maintenance.
Check back in a some hours.
403WebShell
403Webshell
Server IP : 38.242.244.58  /  Your IP : 216.73.216.240
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1486879.contaboserver.net 5.4.0-166-generic #183-Ubuntu SMP Mon Oct 2 11:28:33 UTC 2023 x86_64
User : root ( 0)
PHP Version : 7.4.3-4ubuntu2.19
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/html/sura/templates/model/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/sura/templates/model/dashboard.html.twig
{% extends 'contributor/layout.html.twig' %}

{% block title %}Model Dashboard{% endblock %}

{% block contributor_body %}
    <div class="app_main_inner">
        <div class="row">
            <div class="col-lg-10">
                <div class="mb-3 card">
                    <div class="card-header">
                        {% set total = 0 %}
                        {% for sale in sales %}
                            {% set total = total+ sale.amount %}
                        {% endfor   %}
                        <div class="card-header-title">My Earnings</div>
                        <a class="btn creat_new" href="#">
{#                            <span class="button_primary_label">Total Earnings: {{ total*0.05 }}</span>#}
                            {% set payoutPercentageTotal = 0 %}
                            {% for sale in sales %}
                                    {% set payoutPercentageTotal = payoutPercentageTotal + (attribute(payoutPercentages, sale.id) is defined ? sale.amount * 0.6 * attribute(payoutPercentages, sale.id)/100 : sale.amount * 0.6 * 0.05) %}
                            {% endfor %}
                            <span class="button_primary_label">Total Earnings: {{ payoutPercentageTotal  }}</span>
                        </a>
                    </div>
                    <div class="datagrid">
                        <table>
                            <thead>
                            <tr>
                                <th>File Thumbnail</th>
                                <th>File ID</th>
                                <th>File Title</th>
                                <th>Date of Sale</th>
                                <th>Sales Price</th>
                                <th>My Earnings</th>

                            </tr>
                            </thead>
                            <tbody>
                            {% for sale in sales   %}
                                <tr>
                                    <td data-label="Item">
                                        <img src="{{asset('uploads/stock/'~ sale.stock.thumbName)}}" class="cart_thumbnail" alt="">
                                    </td>
                                    <td data-label="File ID">{{ sale.stock.formattedId ? sale.stock.formattedId : sale.stock.id }}</td>
                                    <td data-label="Name">{{ sale.stock.title }}</td>
                                    <td data-label="Date of Sale">{{sale.CreatedAt ? sale.CreatedAt|date('Y-m-d H:i:s') : '' }}</td>
                                    <td data-label="Sales Price">$ {{ sale.amount }}</td>
                                    <td data-label="Earning">$ {{ attribute(payoutPercentages, sale.id) is defined ? sale.amount * 0.6 * attribute(payoutPercentages, sale.id)/100 : sale.amount * 0.6 * 0.05 }}</td>
                                </tr>
                            {% endfor %}


                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>


        <div class="row">
            <div class="col-lg-10">
                <div class="mb-3 card">
                    <div class="card-header">
                        <div class="card-header-title">My Releases</div>
                    </div>
                    <div class="datagrid">
                        <table style="margin-bottom:0;">
                            <thead>
                                <tr>
                                    <th>Release Title</th>
                                    <th>Photographer</th>
                                    <th>File thumbnail</th>
                                    <th>File ID</th>
                                    <th>Payout in %</th>
                                    <th>Payout Amount</th>
                                </tr>
                            </thead>
                            <tbody>
                            {% for release in releases %}
                                {% if   release.stockReleases is empty %}
                                {% else %}
                                    {% include "model/_release_stocks.html.twig" %}
                                {% endif %}
                            {% endfor %}
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>



    </div>
{% endblock %}

Youez - 2016 - github.com/yon3zu
LinuXploit