📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
supermarketscripti.demodesign.com.tr
/
application
/
views
/
earnings
📝
payouts.php
← Geri Dön
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!-- Wrapper --> <div id="wrapper"> <div class="container"> <div class="row"> <div class="col-12"> <nav class="nav-breadcrumb" aria-label="breadcrumb"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="<?php echo lang_base_url(); ?>"><?php echo trans("home"); ?></a></li> <li class="breadcrumb-item active" aria-current="page"><?php echo $title; ?></li> </ol> </nav> <h1 class="page-title"><?php echo $title; ?></h1> </div> </div> <div class="row"> <div class="col-sm-12 col-md-3"> <div class="row-custom"> <!-- load profile nav --> <?php $this->load->view("earnings/_earnings_tabs"); ?> </div> </div> <div class="col-sm-12 col-md-9"> <div class="row"> <div class="col-12"> <!-- include message block --> <?php $this->load->view('product/_messages'); ?> </div> </div> <div class="row"> <div class="col-12 col-md-7"> <div class="withdraw-money-container"> <h2 class="title"><?php echo trans("withdraw_money"); ?></h2> <?php echo form_open('withdraw-money-post', ['id' => 'form_validate_payout_1', 'class' => 'validate_price',]); ?> <div class="form-group"> <label><?php echo trans("withdraw_amount"); ?></label> <?php $min_value = 0; if ($this->payment_settings->payout_paypal_enabled) { $min_value = $this->payment_settings->min_payout_paypal; } elseif ($this->payment_settings->payout_iban_enabled) { $min_value = $this->payment_settings->min_payout_iban; } elseif ($this->payment_settings->payout_swift_enabled) { $min_value = $this->payment_settings->min_payout_swift; } ?> <div class="input-group mb-3"> <div class="input-group-prepend"> <span class="input-group-text input-group-text-currency" id="basic-addon2"><?php echo get_currency($this->payment_settings->default_product_currency); ?></span> <input type="hidden" name="currency" value="<?php echo $this->payment_settings->default_product_currency; ?>"> </div> <input type="text" name="amount" id="product_price_input" aria-describedby="basic-addon2" class="form-control form-input price-input validate-price-input " placeholder="<?php echo $this->input_initial_price; ?>" onpaste="return false;" maxlength="32" required> </div> </div> <div class="form-group"> <label><?php echo trans("withdraw_method"); ?></label> <div class="selectdiv"> <select name="payout_method" class="form-control" onchange="update_payout_input(this.value);" required> <?php if ($this->payment_settings->payout_paypal_enabled): ?> <option value="paypal"><?php echo trans("paypal"); ?></option> <?php endif; ?> <?php if ($this->payment_settings->payout_iban_enabled): ?> <option value="iban"><?php echo trans("iban"); ?></option> <?php endif; ?> <?php if ($this->payment_settings->payout_swift_enabled): ?> <option value="swift"><?php echo trans("swift"); ?></option> <?php endif; ?> </select> </div> </div> <div class="form-group"> <button type="submit" class="btn btn-md btn-custom"><?php echo trans("submit"); ?></button> </div> <?php echo form_close(); ?> </div> </div> <div class="col-12 col-md-5"> <div class="minimum-payout-container"> <h2 class="title"><?php echo trans("min_poyout_amounts"); ?></h2> <?php if ($this->payment_settings->payout_paypal_enabled): ?> <p><span><?php echo trans("paypal"); ?></span>:<strong><?php echo price_formatted($this->payment_settings->min_payout_paypal, $this->payment_settings->default_product_currency) ?></strong></p> <?php endif; ?> <?php if ($this->payment_settings->payout_iban_enabled): ?> <p><span><?php echo trans("iban"); ?></span>:<strong><?php echo price_formatted($this->payment_settings->min_payout_iban, $this->payment_settings->default_product_currency) ?></strong></p> <?php endif; ?> <?php if ($this->payment_settings->payout_swift_enabled): ?> <p><span><?php echo trans("swift"); ?></span>:<strong><?php echo price_formatted($this->payment_settings->min_payout_swift, $this->payment_settings->default_product_currency) ?></strong></p> <?php endif; ?> <hr> <?php if ($this->auth_check): ?> <p><?php echo trans("your_balance"); ?>:<strong><?php echo price_formatted($this->auth_user->balance, $this->payment_settings->default_product_currency) ?></strong></p> <?php endif; ?> </div> </div> </div> <div class="row-custom table-earnings-container"> <div class="table-responsive"> <table class="table table-orders table-striped"> <thead> <tr> <th scope="col"><?php echo trans("withdraw_method"); ?></th> <th scope="col"><?php echo trans("withdraw_amount"); ?></th> <th scope="col"><?php echo trans("status"); ?></th> <th scope="col"><?php echo trans("date"); ?></th> </tr> </thead> <tbody> <?php foreach ($payouts as $payout): ?> <tr> <td><?php echo trans($payout->payout_method); ?></td> <td><?php echo price_formatted($payout->amount, $payout->currency); ?></td> <td> <?php if ($payout->status == 1) { echo trans("completed"); } else { echo trans("pending"); } ?> </td> <td><?php echo formatted_date($payout->created_at); ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> <?php if (empty($payouts)): ?> <p class="text-center"> <?php echo trans("no_records_found"); ?> </p> <?php endif; ?> </div> <div class="row-custom m-t-15"> <div class="float-right"> <?php echo $this->pagination->create_links(); ?> </div> </div> </div> </div> </div> </div> <!-- Wrapper End--> <script> function update_payout_input(option) { if (option == "paypal") { $('#payout_price_input').attr('min', '<?php echo get_price($this->payment_settings->min_payout_paypal, 'decimal'); ?>'); } if (option == "iban") { $('#payout_price_input').attr('min', '<?php echo get_price($this->payment_settings->min_payout_iban, 'decimal'); ?>'); } if (option == "swift") { $('#payout_price_input').attr('min', '<?php echo get_price($this->payment_settings->min_payout_swift, 'decimal'); ?>'); } $('#payout_price_input').val(''); } </script>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula