2019-10-22 13:27:03 +02:00
|
|
|
|
@extends('portal.default.layouts.master')
|
|
|
|
|
@section('header')
|
|
|
|
|
@stop
|
|
|
|
|
@section('body')
|
|
|
|
|
<main class="main">
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
<div class="row" style="padding-top: 30px;">
|
|
|
|
|
<div class="col d-flex justify-content-center">
|
|
|
|
|
<div class="card w-50 p-10">
|
|
|
|
|
<div class="card-header">
|
|
|
|
|
{{ ctrans('texts.recurring_invoice')}}
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
|
|
|
|
<table class="table table-responsive-sm table-bordered">
|
2019-11-05 23:52:57 +01:00
|
|
|
|
<tr><td style="text-align: right;">{{ctrans('texts.start_date')}}</td><td>{!! $invoice->formatDate($invoice->start_date,$invoice->client->date_format()) !!}</td></tr>
|
|
|
|
|
<tr><td style="text-align: right;">{{ctrans('texts.next_send_date')}}</td><td>{!! $invoice->formatDate($invoice->next_send_date,$invoice->client->date_format()) !!}</td></tr>
|
2019-10-22 13:27:03 +02:00
|
|
|
|
<tr><td style="text-align: right;">{{ctrans('texts.frequency')}}</td><td>{!! App\Models\RecurringInvoice::frequencyForKey($invoice->frequency_id) !!}</td></tr>
|
|
|
|
|
<tr><td style="text-align: right;">{{ctrans('texts.cycles_remaining')}}</td><td>{!! $invoice->remaining_cycles !!}</td></tr>
|
2019-11-05 23:52:57 +01:00
|
|
|
|
<tr><td style="text-align: right;">{{ctrans('texts.amount')}}</td><td>{!! App\Utils\Number::formatMoney($invoice->amount, $invoice->client) !!}</td></tr>
|
2019-10-22 13:27:03 +02:00
|
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<table class="table table-responsive-sm table-sm">
|
|
|
|
|
@foreach($invoice->invoices as $inv)
|
|
|
|
|
{{ $inv->id }} - {{ $inv->amount }}
|
|
|
|
|
@endforeach
|
|
|
|
|
</table>
|
2019-10-23 22:37:20 +02:00
|
|
|
|
|
|
|
|
|
@if($invoice->remaining_cycles >=1)
|
|
|
|
|
<div class="pull-right">
|
2019-11-04 01:22:59 +01:00
|
|
|
|
<button class="btn btn-danger mb-1" type="button" data-toggle="modal" data-target="#cancel_recurring">Request Cancellation</button>
|
2019-10-23 22:37:20 +02:00
|
|
|
|
</div>
|
|
|
|
|
@endif
|
2019-10-22 13:27:03 +02:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
|
2019-11-04 01:22:59 +01:00
|
|
|
|
<div class="modal fade show" id="cancel_recurring" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" style="display: none;" aria-hidden="true">
|
|
|
|
|
<div class="modal-dialog modal-danger" role="document">
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
<h4 class="modal-title">Request Cancellation</h4>
|
|
|
|
|
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
|
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
<p>Warning! You are requesting a cancellation of this service.</p>
|
|
|
|
|
<p>Your service may be cancelled with no further notification to you.</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
<button class="btn btn-secondary" type="button" data-dismiss="modal">Close</button>
|
|
|
|
|
<a href="{{ route('client.recurring_invoices.request_cancellation',['recurring_invoice' => $invoice->hashed_id]) }}" class="btn btn-danger">Confirm Cancellation</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
2019-10-22 13:27:03 +02:00
|
|
|
|
</body>
|
|
|
|
|
@endsection
|
|
|
|
|
@push('css')
|
|
|
|
|
@endpush
|
|
|
|
|
@push('scripts')
|
|
|
|
|
@endpush
|
|
|
|
|
@section('footer')
|
|
|
|
|
@endsection
|
|
|
|
|
|