| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/billing/resources/views/purchase_order/ |
Upload File : |
<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- CSRF Token -->
<meta name="csrf-token" content="{{ csrf_token() }}">
<!--end::Global Stylesheets Bundle-->
<style>
body{ font-size: 13px !important;
font-weight: 400;
font-family: Poppins, Helvetica, "sans-serif";}
table{
border-collapse: collapse;
width: 100%;
}
</style>
</head>
<!--end::Head-->
<!--begin::Body-->
<body>
<!--begin::Wrapper-->
<div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
<!--begin::Content-->
<div class="content d-flex flex-column flex-column-fluid" id="kt_content">
<!--begin::Container-->
<div class="container-xxl" id="kt_content_container">
<!--begin::details View-->
<div class="card mb-5 mb-xl-10" id="kt_profile_details_view">
<!--begin::Card header-->
<!--begin::Card body-->
<div class="card-body p-9">
<div class="mb-0">
<!--begin::Head-->
<div style=" margin-bottom: 3.75rem !important; flex-wrap: wrap !important;display: flex !important;">
<!--begin::Logo-->
@php
$path = @auth()->user()->logo;
$base64 =null;
if(!empty($path)){
$type = pathinfo($path, PATHINFO_EXTENSION);
$data = file_get_contents($path);
$base64 = 'data:image/' . $type . ';base64,' . base64_encode($data);
}
@endphp
@if (!empty(@auth()->user()->logo))
<img style="height: 50px !important;" src="{{ $base64 }}" />
@endif
<!--end::Logo-->
<!--begin::Actions-->
<!--end::Actions-->
</div>
<!--end::Head-->
<!--begin::Label-->
<div style="color: #3F4254 !important;font-weight: 600 !important;font-size: 1.35rem !important;margin-bottom: 2rem !important;">Purchase Order #{{ $invoice->inv_id }}</div>
<!--end::Label-->
<!--begin::Row-->
<div style="display: table;
clear: both;margin-bottom: 2.75rem !important;display: flex;
flex-wrap: wrap;">
<!--end::Col-->
<div style="float: left;
width: 50%;
padding: 15px;">
<!--end::Label-->
<div style="color: #7E8299 !important;font-weight: 500 !important;font-size: 0.95rem !important;margin-bottom: 0.25rem !important;">Issue Date:</div>
<!--end::Label-->
<!--end::Col-->
<div style="color: #3F4254 !important;font-weight: 600 !important; font-size: 1.075rem !important;">
{{ $invoice->created_at->format('d M Y') }}</div>
<!--end::Col-->
</div>
<!--end::Col-->
<div style="float: left;
width: 50%;
padding: 15px;">
<!--end::Label-->
<div style="margin-bottom: 0.25rem !important;"></div>
<!--end::Label-->
<!--end::Text-->
<div style="color: #3F4254 !important;font-weight: 600 !important; font-size: 1.075rem !important;">{{auth()->user()->business}} </div>
<!--end::Text-->
<!--end::Description-->
@if(!empty(auth()->user()->address))
<div style="color: #7E8299 !important;font-weight: 500 !important;font-size: 0.95rem !important;margin-bottom: 0.25rem !important;">{{auth()->user()->address}} <br />
{{auth()->user()->city}}, {{auth()->user()->state}},
{{auth()->user()->country}}, {{auth()->user()->pin}}
</div>
@endif
<!--end::Description-->
</div>
<!--end::Col-->
</div>
<!--end::Row-->
<!--begin::Row-->
<div style="display: table;
clear: both;margin-bottom: 2.75rem !important;display: flex;
flex-wrap: wrap;">
<!--end::Col-->
<!--end::Col-->
<div style="float: left;
width: 50%;
padding: 15px;">
<!--end::Label-->
<div style="color: #7E8299 !important;font-weight: 500 !important;font-size: 0.95rem !important;margin-bottom: 0.25rem !important;">Billed To:</div>
<!--end::Label-->
<!--end::Text-->
<div style="color: #3F4254 !important;font-weight: 600 !important; font-size: 1.075rem !important;">
{{ $invoice->customers->firstname . ' ' . $invoice->customers->lastname }}</div>
<!--end::Text-->
<!--end::Description-->
<div style="color: #7E8299 !important;font-weight: 500 !important;font-size: 0.95rem !important;margin-bottom: 0.25rem !important;">{{ $invoice->billing_address }}<br />
{{ $invoice->billing_city }},{{ $invoice->billing_state }},{{ $invoice->billing_country }},{{ $invoice->billing_pin }}
</div>
<!--end::Description-->
</div>
<!--end::Col-->
<!--end::Col-->
<div style="float: left;
width: 50%;
padding: 15px;">
<!--end::Label-->
<div style="color: #7E8299 !important;font-weight: 500 !important;font-size: 0.95rem !important;margin-bottom: 0.25rem !important;">Shipped To:</div>
<!--end::Label-->
<!--end::Text-->
<div style="color: #3F4254 !important;font-weight: 600 !important; font-size: 1.075rem !important;">
{{ $invoice->customers->firstname . ' ' . $invoice->customers->lastname }}</div>
<!--end::Text-->
<!--end::Description-->
<div style="color: #7E8299 !important;font-weight: 500 !important;font-size: 0.95rem !important;margin-bottom: 0.25rem !important;">{{ $invoice->shipping_address }}<br />
{{ $invoice->shipping_city }},{{ $invoice->shipping_state }},{{ $invoice->shipping_country }},{{ $invoice->shipping_pin }}
</div>
<!--end::Description-->
</div>
<!--end::Col-->
</div>
<!--end::Row-->
<!--begin::Content-->
<div style="display: table;
clear: both;margin-bottom: 2.75rem !important;display: flex;
flex-wrap: wrap;">
<!--begin::Table-->
<div style=" border-bottom:1 px solid grey; margin-bottom: 2.75rem !important;">
<table style=" width: 100%;
margin-bottom: 1rem;
color: #181C32;
vertical-align: top;
border-color: #EFF2F5; ">
<thead style=" border-color: inherit;
border-style: solid;
border-width: 0;">
<tr style=" border-bottom: 1px solid #EFF2F5 !important; font-size: 1.075rem !important; font-weight: 600 !important; color: #B5B5C3 !important;">
<th style="min-width: 175px !important; padding-bottom: 0.5rem !important;">Item</th>
<th style="min-width: 70px !important; text-end padding-bottom: 0.5rem !important;">Price</th>
<th style="min-width: 80px !important; text-end padding-bottom: 0.5rem !important;">Qty</th>
{{-- <th style="min-w-80px text-end padding-bottom: 0.5rem !important;">GST</th> --}}
<th style="min-width: 100px !important; text-end padding-bottom: 0.5rem !important;">Amount</th>
</tr>
</thead>
<tbody>
@php $subtotal=0; $gst = auth()->user()->gst_percent; @endphp
@forelse($invoice->lineItem as $item)
@php
$subtotal = $item->price + $subtotal; @endphp
<tr style=" font-weight: 600 !important; font-size: 1.15rem !important; text-align: right !important; color: #5E6278 !important;">
<td style="display: flex !important; align-items: center !important; padding-top: 1.5rem !important;">
<i
class="fa fa-genderless text-danger fs-2 me-2"></i>{{ $item->product->name }}
</td>
<td style="padding-top: 1.5rem !important;">{{$item->product->price}}</td>
<td style="padding-top: 1.5rem !important;">{{ $item->qty }}</td>
{{--styleclass="padding-top: 1.5rem !important;">{{$gst}}%</td> --}}
<td style="padding-top: 1.5rem !important; text-dark fw-boldest">{{ $item->price }}</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
<!--end::Table-->
<!--begin::Container-->
<div class="d-flex justify-content-end">
<!--begin::Section-->
<div class="mw-300px">
<!--begin::Item-->
<div class="d-flex flex-stack mb-3">
<!--begin::Accountname-->
<div class="fw-bold pe-10 text-gray-600 fs-7">Subtotal:</div>
<!--end::Accountname-->
<!--begin::Label-->
<div class="text-end fw-bolder fs-6 text-gray-800">Rs. {{ $subtotal }}
</div>
<!--end::Label-->
</div>
<!--end::Item-->
<!--begin::Item-->
<div class="d-flex flex-stack mb-3">
<!--begin::Accountname-->
<div class="fw-bold pe-10 text-gray-600 fs-7">GST[{{ $gst }}%] :
</div>
<!--end::Accountname-->
<!--begin::Label-->
<div class="text-end fw-bolder fs-6 text-gray-800">Rs.
{{ Helper::taxCal($gst, $subtotal) }}</div>
<!--end::Label-->
</div>
<!--end::Item-->
<!--begin::Item-->
<div class="d-flex flex-stack mb-3">
<!--begin::Accountnumber-->
<div class="fw-bold pe-10 text-gray-600 fs-7">Subtotal + GST :</div>
<!--end::Accountnumber-->
<!--begin::Number-->
<div class="text-end fw-bolder fs-6 text-gray-800">Rs.
{{ !empty($gst) ? Helper::totalPrice($gst, $subtotal, 1) : $subtotal }}</div>
<!--end::Number-->
</div>
<!--end::Item-->
<!--begin::Item-->
<div class="d-flex flex-stack mb-3">
<!--begin::Accountnumber-->
<div class="fw-bold pe-10 text-gray-600 fs-7">Total :</div>
<!--end::Accountnumber-->
<!--begin::Number-->
<div class="text-end fw-bolder fs-6 text-gray-800">Rs.
{{ !empty($gst) ? Helper::totalPrice($gst, $subtotal, 1) : $subtotal }}</div>
<!--end::Number-->
</div>
<!--end::Item-->
<!--begin::Item-->
<!--end::Item-->
</div>
<!--end::Section-->
</div>
<!--end::Container-->
</div>
<!--end::Content-->
</div>
</div>
<!--end::Container-->
</div>
<!--end::Content-->
</div>
<!--end::Wrapper-->
</body>
</html>