2020-07-29 16:39:10 +02:00
|
|
|
@extends('portal.ninja2020.layout.clean', ['custom_body_class' => 'overflow-y-hidden'])
|
2020-06-18 12:48:31 +02:00
|
|
|
@section('meta_title', ctrans('texts.view_invoice'))
|
|
|
|
|
|
|
|
@section('body')
|
2020-06-18 12:51:47 +02:00
|
|
|
@if($invoice->isPayable())
|
|
|
|
<form action="{{ route('client.invoices.bulk') }}" method="post">
|
|
|
|
@csrf
|
2021-01-14 13:29:46 +01:00
|
|
|
<div class="bg-white shadow sm:rounded-lg">
|
2020-06-18 12:51:47 +02:00
|
|
|
<div class="px-4 py-5 sm:p-6">
|
|
|
|
<div class="sm:flex sm:items-start sm:justify-between">
|
|
|
|
<div>
|
|
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
2021-01-14 13:29:46 +01:00
|
|
|
{{ ctrans('texts.invoice_number_placeholder', ['invoice' => $invoice->number])}}
|
|
|
|
- {{ ctrans('texts.unpaid') }}
|
2020-06-18 12:51:47 +02:00
|
|
|
</h3>
|
|
|
|
<div class="mt-2 max-w-xl text-sm leading-5 text-gray-500">
|
|
|
|
<p translate>
|
2021-01-14 13:29:46 +01:00
|
|
|
{{ ctrans('texts.invoice_still_unpaid') }}
|
|
|
|
<!-- This invoice is still not paid. Click the button to complete the payment. -->
|
2020-06-18 12:51:47 +02:00
|
|
|
</p>
|
|
|
|
</div>
|
2020-06-18 12:48:31 +02:00
|
|
|
</div>
|
2020-06-18 12:51:47 +02:00
|
|
|
<div class="mt-5 sm:mt-0 sm:ml-6 sm:flex-shrink-0 sm:flex sm:items-center">
|
2021-01-27 12:45:38 +01:00
|
|
|
<a href="{{ route('client.invoice.show', $invoice->hashed_id) }}?mode=portal"
|
|
|
|
class="mr-4 text-primary">
|
2021-01-14 13:29:46 +01:00
|
|
|
← {{ ctrans('texts.client_portal') }}
|
|
|
|
</a>
|
|
|
|
|
2021-01-14 03:57:05 +01:00
|
|
|
<div class="inline-flex rounded-md shadow-sm">
|
2020-06-18 12:51:47 +02:00
|
|
|
<input type="hidden" name="invoices[]" value="{{ $invoice->hashed_id }}">
|
|
|
|
<input type="hidden" name="action" value="payment">
|
2020-09-30 13:31:15 +02:00
|
|
|
<button class="button button-primary bg-primary">{{ ctrans('texts.pay_now') }}</button>
|
2020-06-18 12:51:47 +02:00
|
|
|
</div>
|
2020-06-18 12:48:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-18 12:51:47 +02:00
|
|
|
</form>
|
2021-01-14 03:57:05 +01:00
|
|
|
@else
|
2021-01-27 12:45:38 +01:00
|
|
|
<div class="bg-white shadow sm:rounded-lg mb-4">
|
2021-01-14 13:29:46 +01:00
|
|
|
<div class="px-4 py-5 sm:p-6">
|
|
|
|
<div class="sm:flex sm:items-start sm:justify-between">
|
2021-01-27 12:45:38 +01:00
|
|
|
<h3 class="text-lg leading-6 font-medium text-gray-900">
|
|
|
|
{{ ctrans('texts.invoice_number_placeholder', ['invoice' => $invoice->number])}}
|
|
|
|
- {{ ctrans('texts.paid') }}
|
|
|
|
</h3>
|
|
|
|
<a href="{{ route('client.invoice.show', $invoice->hashed_id) }}?mode=portal"
|
|
|
|
class="mr-4 text-primary">
|
|
|
|
← {{ ctrans('texts.client_portal') }}
|
|
|
|
</a>
|
2021-01-14 13:29:46 +01:00
|
|
|
</div>
|
2021-01-14 03:57:05 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-06-18 12:51:47 +02:00
|
|
|
@endif
|
|
|
|
|
|
|
|
<iframe src="{{ $invoice->pdf_file_path() }}" class="h-screen w-full border-0"></iframe>
|
2021-01-13 14:31:28 +01:00
|
|
|
@endsection
|