| 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() }}">
<title>{{ config('app.name', 'Invoices') }}</title>
<link rel="shortcut icon" href="{{ asset('assets/media/logos/favicon.ico') }}" />
<!--begin::Fonts-->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" />
<!--end::Fonts-->
<!--begin::Page Vendor Stylesheets(used by this page)-->
<link href="{{ url('assets/plugins/custom/fullcalendar/fullcalendar.bundle.css') }}" rel="stylesheet"
type="text/css" media="screen" />
<!--end::Page Vendor Stylesheets-->
<!--begin::Global Stylesheets Bundle(used by all pages)-->
<link href="{{ url('assets/plugins/global/plugins.bundle.css') }}" rel="stylesheet" type="text/css"
media="screen" />
<link href="{{ url('assets/css/style.bundle.css') }}" rel="stylesheet" type="text/css" media="screen" />
<!--end::Global Stylesheets Bundle-->
</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-->
<div class="card-header cursor-pointer">
<!--begin::Card title-->
<div class="card-title m-0">
<h3 class="fw-bolder m-0">Purchase Order View</h3>
</div>
<!--end::Card title-->
</div>
<!--begin::Card header-->
<!--begin::Card body-->
<!--begin::Card body-->
<div class="card-body p-9">
<div class="mb-0">
<!--begin::Head-->
<div class="d-flex flex-stack flex-wrap mb-10 mb-lg-15">
<!--begin::Logo-->
<a href="#">
@if (!empty(auth()->user()->logo))
<img alt="Logo" class="h-50px" src="{{ asset(auth()->user()->logo) }}" />
@endif
</a>
<!--end::Logo-->
<!--begin::Actions-->
<!--end::Actions-->
</div>
<!--end::Head-->
<!--begin::Label-->
<div class="fw-bolder fs-3 text-gray-800 mb-8">Purchase Order #{{ $invoice->id }}</div>
<!--end::Label-->
<!--begin::Row-->
<div class="row g-5 mb-11">
<!--end::Col-->
<div class="col-sm-6">
<!--end::Label-->
<div class="fw-bold fs-7 text-gray-600 mb-1">Issue Date:</div>
<!--end::Label-->
<!--end::Col-->
<div class="fw-bolder fs-6 text-gray-800">
{{ $invoice->created_at->format('d M Y') }}</div>
<!--end::Col-->
</div>
<!--end::Col-->
<div class="col-sm-6">
<!--end::Label-->
<div class="fw-bold fs-7 text-gray-600 mb-1"></div>
<!--end::Label-->
<!--end::Text-->
<div class="fw-bolder fs-6 text-gray-800">{{auth()->user()->business}}</div>
<!--end::Text-->
<!--end::Description-->
<div class="fw-bold fs-7 text-gray-600">{{auth()->user()->address}} <br />
{{auth()->user()->city}}, {{auth()->user()->state}},
{{auth()->user()->country}}, {{auth()->user()->pin}}
</div>
<!--end::Description-->
</div>
<!--end::Col-->
</div>
<!--end::Row-->
<!--begin::Row-->
<div class="row g-5 mb-12">
<!--end::Col-->
<!--end::Col-->
<div class="col-sm-6">
<!--end::Label-->
<div class="fw-bold fs-7 text-gray-600 mb-1">Billed To:</div>
<!--end::Label-->
<!--end::Text-->
<div class="fw-bolder fs-6 text-gray-800">
{{ $invoice->customers->firstname . ' ' . $invoice->customers->lastname }}</div>
<!--end::Text-->
<!--end::Description-->
<div class="fw-bold fs-7 text-gray-600">{{ $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 class="col-sm-6">
<!--end::Label-->
<div class="fw-bold fs-7 text-gray-600 mb-1">Shipped To:</div>
<!--end::Label-->
<!--end::Text-->
<div class="fw-bolder fs-6 text-gray-800">
{{ $invoice->customers->firstname . ' ' . $invoice->customers->lastname }}</div>
<!--end::Text-->
<!--end::Description-->
<div class="fw-bold fs-7 text-gray-600">{{ $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 class="flex-grow-1">
<!--begin::Table-->
<div class="table-responsive border-bottom mb-9">
<table class="table mb-3">
<thead>
<tr class="border-bottom fs-6 fw-bolder text-gray-400">
<th class="min-w-175px pb-2">Item</th>
<th class="min-w-70px text-end pb-2">Price</th>
<th class="min-w-80px text-end pb-2">Qty</th>
{{-- <th class="min-w-80px text-end pb-2">GST</th> --}}
<th class="min-w-100px text-end pb-2">Amount</th>
</tr>
</thead>
<tbody>
@php $subtotal=0; @endphp
@forelse($invoice->lineItem as $item)
@php $gst = auth()->user()->gst_percent;
$subtotal = $item->price + $subtotal; @endphp
<tr class="fw-bolder text-gray-700 fs-5 text-end">
<td class="d-flex align-items-center pt-6">
<i
class="fa fa-genderless text-danger fs-2 me-2"></i>{{ $item->product->name }}
</td>
<td class="pt-6">{{$item->product->price}}</td>
<td class="pt-6">{{ $item->qty }}</td>
{{-- <td class="pt-6">{{$gst}}%</td> --}}
<td class="pt-6 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">Total (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>