![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/resources/views/invoices/ |
@inject('service', 'App\library\InjectService') <div id="invoice-temp"> <div class="invoice-temp overflow-auto"> <div class="invoice-div"> <header> <div class="row row-flex"> <div class="col invoice-temp-logo"> @if(isset($setting) && !empty($setting->header_logo)) <img src="{{ asset('/public/img/images_uploaded/'.$setting->header_logo)}}" alt="{{ config('app.name') }}" data-holder-rendered="true" /> @endif </div> <div class="col company-details"> <h2 class="name">{{ $contact_info['contact_name'] }}</h2> <div>{{ $contact_info['address'] }}</div> <div>{{ $contact_info['phone'] }}</div> <div>{{ $contact_info['email'] }}</div> </div> </div> </header> <main> <div class="row row-flex contacts"> <div class="col invoice-temp-details"> @if($order['order_status'] == '0') <h1 class="@if($status->name == 'paid') invoice-temp-paid @elseif($status->name == 'pending') invoice-temp-pending @elseif($status->name == 'awaiting payment') invoice-temp-awaiting @elseif($status->name == 'cancelled') invoice-temp-cancelled @else invoice-temp-unpaid @endif"> {{ strtoupper($status->name)}} </h1> @elseif($order['order_status'] == '1' && $status->name == 'paid') <h1 class="@if($status->name == 'paid') invoice-temp-paid @elseif($status->name == 'pending') invoice-temp-pending @elseif($status->name == 'awaiting payment') invoice-temp-awaiting @elseif($status->name == 'cancelled') invoice-temp-cancelled @else invoice-temp-unpaid @endif"> {{ strtoupper($status->name)}} </h1> @else <h1 class="invoice-temp-cancelled"> DELIVERED </h1> @endif </div> </div> <div class="row row-flex contacts"> <div class="col invoice-temp-to"> <div class="text-gray-light">INVOICE TO:</div> <h2 class="to">{{ $customer['name'] }}</h2> <div class="address">{{$order['address']->address_1}}, <?php if (!empty($order['address']->address_2)) { echo $order['address']->address_2.','; } ?> {{$order['address']->town}}, {{$order['address']->county}}, {{$order['address']->zip}}</div> <div class="email">{{ $customer['email'] }}</div> </div> <div class="col invoice-temp-details"> <h1 class="invoice-temp-id">INVOICE #{{$order['id']}}</h1> <div class="date">Date of Invoice: {{ date('d/m/Y', strtotime($order['updated_at'])) }}</div> @if( $order['oil_type_order'] == 1 ) <div class="date">Date of Delivery: {{ $delivery_date }}</div> @endif </div> </div> <div class="notices"> <h1 class="invoice-delivery">DELIVERY ADDRESS:</h1> <div class="notice"> {{ $address->address_1 }}{{ ( $address->address_2 != '' ) ? ', ' . $address->address_2: '' }}{{ ( $address->town != '' ) ? ', ' . $address->town: '' }}{{ ( $address->county != '' ) ? ', ' . $address->county: '' }}{{ ( $address->zip != '' ) ? ', ' . $address->zip: '' }} </div> </div> <table border="0" cellspacing="0" cellpadding="0"> <thead> <tr> <th>#</th> <th class="text-left">DESCRIPTION</th> <th class="text-right">VAT</th> <th class="text-right">QTY</th> <th class="text-right">TOTAL</th> </tr> </thead> <tbody> @foreach ($order['products'] as $product) <tr> <td class="no">{{ $product['id'] }}</td> <td class="text-left maintitle"><h3>{{ $product['name'] }}</h3></td> @if( $order['oil_type_order'] == 1 ) <td class="unit">{{ floatval($order['tax_percentage']) }}%</td> @else <?php $productId = $product['pivot']['product_id']; $productDetails = \DB::table('products')->where('id', $productId)->first(); ?> <td class="unit">{{ floatval($productDetails->tax) }}%</td> @endif <td class="qty">{{ $product['pivot']['quantity'] }}</td> @if($order['oil_type_order'] == 1) <td class="total">{{ config('cart.currency_symbol') }}{{ number_format((($order['total_paid'] + $order['discounts']) - $order['tax_value']), 2) }}</td> @else <td class="total">{{ config('cart.currency_symbol') }}{{ number_format(($product['pivot']['product_price'] * $product['pivot']['quantity']), 2) }}</td> @endif </tr> @endforeach </tbody> <tfoot> <tr> <td colspan="3"></td> <td class="footertotal">SUBTOTAL</td> <td class="footertotal">{{ config('cart.currency_symbol') }}{{ number_format((($order['total_paid']+$order['discounts']) - $order['tax_value']), 2) }}</td> </tr> <tr> <td colspan="3"></td> <td class="footertotal"> @if( $order['oil_type_order'] == 1 ) VAT @ {{ floatval($order['tax_percentage']) }}% @else VAT @endif </td> <td class="footertotal">{{ config('cart.currency_symbol') }}{{ number_format($order['tax_value'], 2) }}</td> </tr> <tr> <td colspan="3"></td> <td class="footertotal">DISCOUNT</td> <td class="footertotal">{{ config('cart.currency_symbol') }}{{ number_format($order['discounts'], 2) }}</td> </tr> <tr> <td colspan="3"></td> <td class="footertotal">GRAND TOTAL</td> <td class="footertotal">{{ config('cart.currency_symbol') }}{{ number_format($order['total_paid'], 2) }}</td> </tr> </tfoot> </table> <div> <?php $footerContent = $service->getInvoiceContent("invoice_footer"); ?> @if($footerContent) {!! $footerContent->message !!} @endif </div> </main> </div> <div></div> </div> </div>