|
@@ -31,6 +31,9 @@ $invoices = $customer->invoices;
|
|
|
<tbody>
|
|
|
<?php $i = 1; ?>
|
|
|
@foreach ($invoices as $record)
|
|
|
+ <?php
|
|
|
+ $payUrl = $record->getPayUrl();
|
|
|
+ ?>
|
|
|
<tr>
|
|
|
<td>{{ $i++ }}</td>
|
|
|
<td>{{ $record->customer->company ? $record->customer->company->name : '---' }}</td>
|
|
@@ -72,8 +75,12 @@ $invoices = $customer->invoices;
|
|
|
{{-- <a href="#" data-invoice-uid="{{ $record->uid }}"
|
|
|
data-uid="{{ $record->customer->uid }}" class="generate-and-visit-ic-pay" native
|
|
|
target="_blank">Visit</a> --}}
|
|
|
+ @if($payUrl)
|
|
|
+ {{-- <small class="text-muted">Requested to pay</small> --}}
|
|
|
+ @else
|
|
|
<a href="#" data-invoice-uid="{{ $record->uid }}" data-uid="{{ $record->customer->uid }}"
|
|
|
class="generate-and-store-ic-pay-url" native target="_blank">Request Pay</a>
|
|
|
+ @endif
|
|
|
<small class="text-muted px-1">|</small>
|
|
|
<a href="#" data-invoice-uid="{{ $record->uid }}"
|
|
|
data-uid="{{ $record->customer->uid }}" class="generate-and-copy-ic-pay-url ml-1"
|