File manager - Edit - /var/www/payraty/inventory_main/resources/views/emails/invoices/invoice.blade.php
Back
@extends('admin.layouts.master-pdf') @section('content') <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-top-table-heads"> <tr> <td class="ic-table-app-name"> {{ config('site_title') ?? config('app.name') }}</td> <td class="text-right">{{ __('custom.invoice_id') }} # {{ make8digits($data->id) }}</td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td class="ic-table-td"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-inner-td"style="vertical-align: top;"> <P class="ic-table-inner-td"><b>{{ __('custom.billed_to') }}:</b></P> @if($data->billing_info['name']) <p class="ic-table-tr-td-text"> {{ $data->billing_info['name'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->billing_info['email'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->billing_info['phone_number'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->billing_info['address_line_1'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->billing_info['address_line_2'] ?? '' }}</p> <p class="ic-table-tr-td-text"> {{ $data->billing_info['zip'] ? $data->billing_info['zip'].',1 ' : '' }} {{ $data->billing_info['city'] ? $data->billing_info['city'].',2 ' : '' }} {{ $data->billing_info['state'] ? $data->billing_info['state'].',3 ' : '' }} {{ $data->billing_info['country'] ?? '' }} </p> @else @if($data->customer_id != null && $data->customer_id != "") <p class="mb-0">{{ @$data->customerInfo['full_name'] ?? '' }}</p> <p class="mb-0">{{ @$data->customerInfo['email'] ?? '' }}</p> <p class="mb-0">{{ @$data->customerInfo['phone'] ?? '' }}</p> <p class="mb-0"> {{ $data->customerInfo['address_line_1'] ? $data->customerInfo['address_line_1'].',4 ' : '' }} {{ $data->customerInfo['address_line_2'] ? $data->customerInfo['address_line_2'].'5' : '' }} </p> <p class="mb-0"> {{ $data->customerInfo['zipcode'] ? $data->customerInfo['zipcode'].', ' : '' }} {{ optional($data->customerInfo->systemCity)->name ? optional($data->customerInfo->systemCity)->name .',6 ' : '' }} {{ optional($data->customerInfo->systemState)->name ? optional($data->customerInfo->systemState)->name .',7 ' : '' }} {{ optional($data->customerInfo->systemCountry)->name ?optional($data->customerInfo->systemCountry)->name .',8 ' : '' }} </p> @else <p class="mb-0">{{ __('custom.walk_in_customer') }}</p> @endif @endif </td> </tr> </table> </td> <td class="ic-table-td-right" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-text-right"> <P class="ic-table-inner-td"><b>{{ __('custom.shipped_to') }}:</b></P> @if($data->shipping_info['name']) <p class="ic-table-tr-td-text">{{ $data->shipping_info['name'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->shipping_info['email'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->shipping_info['phone_number'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->shipping_info['address_line_1'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ $data->shipping_info['address_line_2'] ?? '' }}</p> <p class="ic-table-tr-td-text"> {{ $data->shipping_info['zip'] ? $data->shipping_info['zip'].', ' : '' }} {{ $data->shipping_info['city'] ? $data->shipping_info['city'].', ' : '' }} {{ $data->shipping_info['state'] ? $data->shipping_info['state'].', ' : '' }} {{ $data->shipping_info['country'] ?? '' }} </p> @else @if($data->customer_id != null && $data->customer_id != "") <p class="ic-table-tr-td-text">{{ @$data->customerInfo['full_name'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ @$data->customerInfo['email'] ?? '' }}</p> <p class="ic-table-tr-td-text">{{ @$data->customerInfo['phone'] ?? '' }}</p> <p class="ic-table-tr-td-text"> {{ $data->customerInfo['address_line_1'] ? $data->customerInfo['address_line_1'].', ' : '' }} {{ $data->customerInfo['address_line_2'] ? $data->customerInfo['address_line_2'] : '' }} </p> <p class="ic-table-tr-td-text"> {{ $data->customerInfo['zipcode'] ? $data->customerInfo['zipcode'].', ' : '' }} {{ optional($data->customerInfo->systemCity)->name ? optional($data->customerInfo->systemCity)->name .', ' : '' }} {{ optional($data->customerInfo->systemState)->name ? optional($data->customerInfo->systemState)->name .', ' : '' }} {{ optional($data->customerInfo->systemCountry)->name ?optional($data->customerInfo->systemCountry)->name .', ' : '' }} </p> @else <p class="ic-table-tr-td-text">{{ __('custom.walk_in_customer') }}</p> @endif @endif </td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td class="ic-table-td"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-inner-td"><b>{{ __('custom.status') }}:</b></td> </tr> <tr> <td class="ic-padding"> <p class="ic-table-tr-td-text"> {{ \App\Models\Invoice::INVOICE_ALL_STATUS[$data->status] }}</p> </td> </tr> </table> </td> <td class="ic-table-td-right" valign="top"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-text-right"><b>{{ __('custom.date') }}:</b></td> </tr> <tr> <td class="ic-table-text-right"> <p class="ic-table-tr-td-text">{{ custom_date($data->date) }}</p> </td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td class="ic-table-td"> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr> <td class="ic-table-inner-td"><b>{{ __('custom.summary') }}</b></td> </tr> </table> </td> </tr> </table> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-invoice-table-heads"> <tr> <td> <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ic-table-fixed-layout"> <thead> <tr> <th class="ic-table-th"> {{ __('custom.sku') }}</th> <th width="40%" class="ic-table-th "> {{ __('custom.name') }}</th> <th class="ic-table-th ic-table-th-text-center"> {{ __('custom.quantity') }}</th> <th class="ic-table-th"> {{ __('custom.price') }}</th> <th class="ic-table-th"> {{ __('custom.discount') }}</th> <th class="ic-table-th ic-table-th-text-right"> {{ __('custom.sub_total') }}</th> </tr> </thead> <tbody> @if (isset($data->items)) @foreach ($data->items as $item) <tr> <td class="ic-table-td-style"> <b>{{ $item->sku ?? '' }}</b> </td> <td width="40%" class="ic-table-td-style"> <b>{{ $item->product_name ?? '' }}</b> </td> <td class="ic-table-td-style"> <b>{{ $item->quantity ?? '' }}</b> </td> <td class="ic-table-td-style"> <b>{{ $item->price ?? '' }}</b> </td> <td class="ic-table-td-style"> <b>{{ $data->discount }} @if($data->discount_type == \App\Models\Invoice::DISCOUNT_PERCENT) % @endif</b> </td> <td class="ic-table-td-style"> <b>{{ $item->sub_total ?? '' }}</b> </td> </tr> @endforeach @endif <tr> <td colspan="4"></td> <td class="ic-table-inner-td"><b>{{ __('custom.discount') }}</b></td> <td class="ic-table-text-right"> <b>{{ $data->discount_amount }}</b> </td> </tr> <tr> <td colspan="4"></td> <td class="ic-table-inner-td"><b>{{ __('custom.tax') }}Tax</b></td> <td class="ic-table-text-right"> <b>{{ $data->tax_amount }}</b> </td> </tr> <tr> <td colspan="4"></td> <td class="ic-table-inner-td"><b>{{ __('custom.total') }}Total</b></td> <td class="ic-table-text-right"> <b>{{ $data->total }}</b> </td> </tr> </tbody> </table> </td> </tr> </table> @endsection @push('style') @endpush @push('script') @endpush
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings