[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: default.blade.php
@php $type = isset($type) ? $type : 'preview'; @endphp <!-- Default Invoice template --> <div id="invoice" class="{{ $type }}"> <div class="default-invoice"> <div class="invoice-header"> <div class="row"> <div class="col-6 float-left left-header"> @if($type == 'pdf') <img class="logo" src="{{ public_path('uploads/media/' . $purchase->business->logo) }}"> @else <img class="logo" src="{{ asset('public/uploads/media/' . $purchase->business->logo) }}"> @endif <h2 class="title">{{ $purchase->title }}</h2> </div> <div class="col-6 float-right right-header"> <h4 class="company-name">{{ $purchase->business->name }}</h4> <p>{{ $purchase->business->address }}</p> <p>{{ $purchase->business->phone }}</p> <p>{{ $purchase->business->email }}</p> <p>{{ $purchase->business->country }}</p> </div> <div class="clear"></div> </div> </div> <div class="invoice-details"> <div class="row align-items-bottom"> <div class="col-6 float-left"> <h5 class="bill-to-heading">{{ _lang('BILLING DETAILS') }}</h5> <h4 class="bill-to">{{ $purchase->vendor->name }}</h4> <p>{{ $purchase->vendor->address }}</<p> <p>{{ $purchase->vendor->city }}</<p> <p>{{ $purchase->vendor->zip }}</<p> <p>{{ $purchase->vendor->country }}</p> </div> <div class="col-6 text-right float-right"> <h5 class="mb-2">{{ _lang('Bill No') }}#: {{ $purchase->bill_no }}</h4> <p>{{ _lang('Purchase Date') }}: {{ $purchase->purchase_date }}</p> <p class="mb-2">{{ _lang('Due Date') }}: {{ $purchase->due_date }}</p> <p><strong>{{ _lang('Grand Total') }}: {{ formatAmount($purchase->grand_total, currency_symbol($purchase->business->currency), $purchase->business_id) }}</strong></p> <p><strong>{{ _lang('Due Amount') }}: {{ formatAmount($purchase->grand_total - $purchase->paid, currency_symbol($purchase->business->currency), $purchase->business_id) }}</strong></p> </div> <div class="clear"></div> </div> </div> @php $invoiceColumns = json_decode(get_business_option('purchase_column', null, $purchase->business_id)); @endphp <div class="invoice-body"> <div class="table-responsive-sm"> <table class="table"> <thead> <tr> @if(isset($invoiceColumns->name->status)) @if($invoiceColumns->name->status != '0') <th>{{ isset($invoiceColumns->name->label) ? $invoiceColumns->name->label : _lang('Name') }}</th> @endif @else <th>{{ _lang('Name') }}</th> @endif @if(isset($invoiceColumns->quantity->status)) @if($invoiceColumns->quantity->status != '0') <th class="text-center">{{ isset($invoiceColumns->quantity->label) ? $invoiceColumns->quantity->label : _lang('Quantity') }}</th> @endif @else <th class="text-center">{{ _lang('Quantity') }}</th> @endif @if(isset($invoiceColumns->price->status)) @if($invoiceColumns->price->status != '0') <th class="text-right">{{ isset($invoiceColumns->price->label) ? $invoiceColumns->price->label : _lang('Price') }}</th> @endif @else <th class="text-right">{{ _lang('Price') }}</th> @endif @if(isset($invoiceColumns->amount->status)) @if($invoiceColumns->amount->status != '0') <th class="text-right">{{ isset($invoiceColumns->amount->label) ? $invoiceColumns->amount->label : _lang('Amount') }}</th> @endif @else <th class="text-right">{{ _lang('Amount') }}</th> @endif </tr> </thead> <tbody> @foreach($purchase->items as $item) <tr> <td class="product-name"> @if(isset($invoiceColumns->name->status)) @if($invoiceColumns->name->status != '0') <p>{{ $item->product_name }}</p> @endif @else <p>{{ $item->product_name }}</p> @endif @if(isset($invoiceColumns->description->status)) @if($invoiceColumns->description->status != '0') <p>{{ $item->description }}</p> @endif @else <p>{{ $item->description }}</p> @endif </td> @if(isset($invoiceColumns->quantity->status)) @if($invoiceColumns->quantity->status != '0') <td class="text-center">{{ $item->quantity.' '.$item->product->product_unit->unit }}</td> @endif @else <td class="text-center">{{ $item->quantity.' '.$item->product->product_unit->unit }}</td> @endif @if(isset($invoiceColumns->price->status)) @if($invoiceColumns->price->status != '0') <td class="text-right text-nowrap">{{ formatAmount($item->unit_cost, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> @endif @else <td class="text-right text-nowrap">{{ formatAmount($item->unit_cost, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> @endif @if(isset($invoiceColumns->amount->status)) @if($invoiceColumns->amount->status != '0') <td class="text-right text-nowrap">{{ formatAmount($item->sub_total, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> @endif @else <td class="text-right text-nowrap">{{ formatAmount($item->sub_total, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> @endif </tr> @endforeach </tbody> </table> </div> </div> <div class="invoice-summary"> <div class="row"> <div class="col-xl-7 col-lg-6 float-left"> <div class="invoice-note"> <p><b>{{ _lang('Notes / Terms') }}:</b> {!! xss_clean($purchase->note) !!}</p> </div> </div> <div class="col-xl-5 col-lg-6 float-right"> <table class="table text-right m-0"> <tr> <td>{{ _lang('Sub Total') }}</td> <td class="text-nowrap">{{ formatAmount($purchase->sub_total, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> </tr> @foreach($purchase->taxes as $tax) <tr> <td>{{ $tax->name }}</td> <td class="text-nowrap">+ {{ formatAmount($tax->amount, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> </tr> @endforeach @if($purchase->discount > 0) <tr> <td>{{ _lang('Discount') }}</td> <td class="text-nowrap">- {{ formatAmount($purchase->discount, currency_symbol($purchase->business->currency), $purchase->business_id) }}</td> </tr> @endif <tr> <td><b>{{ _lang('Grand Total') }}</b></td> <td class="text-nowrap"><b>{{ formatAmount($purchase->grand_total, currency_symbol($purchase->business->currency), $purchase->business_id) }}</b></td> </tr> @if($purchase->grand_total != $purchase->converted_total) <tr> <td><b>{{ _lang('Converted Total') }}</b></td> <td class="text-nowrap"><b>{{ formatAmount($purchase->converted_total, currency_symbol($purchase->vendor->currency), $purchase->business_id) }}</b></td> </tr> @endif </table> </div> <div class="clear"></div> </div> </div> </div> <div class="invoice-footer"> <p>{!! xss_clean($purchase->footer) !!}</p> </div> </div>
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.8 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:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002