Fixes for cart and payment/paypal processing

This commit is contained in:
2024-08-10 22:17:21 +10:00
parent efbb3d091f
commit f1dd68a737
10 changed files with 271 additions and 189 deletions

View File

@@ -18,9 +18,7 @@
@endsection
@section('main-content')
<!-- Main content -->
<div class="invoice p-3 mb-3">
<!-- title row -->
<div class="row">
<div class="col-8">
<h2>
@@ -31,10 +29,8 @@
<div class="col-4 text-right">
<h1 class="text-uppercase">Tax Invoice</h1>
</div>
<!-- /.col -->
</div>
<!-- info row -->
<div class="row invoice-info">
<div class="col-4 invoice-col">
<address>
@@ -84,12 +80,10 @@
</table>
</div>
</div>
<!-- /.row -->
<!-- Table row -->
<div class="row">
<div class="col-12 table-responsive">
<table class="table table-striped table-hover">
<div class="col">
<table class="table table-responsive table-striped table-hover">
<thead>
<tr>
<th>Qty</th>
@@ -144,15 +138,11 @@
</tbody>
</table>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- padding -->
<div class="row pb-5"></div>
<div class="row">
<!-- accepted payments column -->
<div class="col-6">
<p class="lead">Payment Methods:</p>
@@ -172,7 +162,6 @@
</p>
</div>
<!-- /.col -->
<div class="ml-auto col-4">
<table class="table">
<tr>
@@ -213,18 +202,14 @@
@endif
</table>
</div>
<!-- /.col -->
</div>
<!-- /.row -->
<!-- this row will not appear when printing -->
<div class="row d-print-none">
<div class="col-12">
<a href="javascript:window.print();" class="btn btn-default"><i class="fas fa-print"></i> Print</a>
<button type="button" id="print" class="btn btn-default"><i class="fas fa-print"></i> Print</button>
@if($o->id)
<a href="{{ url('u/invoice/cart',$o->id) }}" class="btn btn-success float-right">
<i class="fas fa-credit-card"></i> Pay
</a>
<a href="{{ url('u/checkout/cart',$o->id) }}" class="btn btn-success float-right"><i class="fas fa-credit-card"></i> Pay</a>
{{--
<a href="{{ url(sprintf('u/invoice/%s/pdf',$o->id)) }}" class="btn btn-primary float-right mr-2">
<i class="fas fa-download"></i> Download PDF
@@ -234,7 +219,23 @@
</div>
</div>
</div>
<!-- /.content -->
@endsection
<div class="clearfix"></div>
@endsection
@section('page-styles')
<style media="print">
/* Dont show URL and date in print output */
@page {
size: auto; /* auto is the initial value */
margin: 0; /* this affects the margin in the printer settings */
}
</style>
@append
@section('page-scripts')
<script type="text/javascript">
$(document).ready(function() {
$('#print').on('click',function() {
window.print();
})
});
</script>
@append