mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-11 21:52:35 +01:00
adfced11d6
* Add conditional checks in client portal * Add ability to cancel recurring invoices from client portal * Fixes for types * Add fields to invoice and quote table
50 lines
2.0 KiB
PHP
50 lines
2.0 KiB
PHP
@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">
|
|
<tr><td style="text-align: right;">{{ctrans('texts.start_date')}}</td><td>{!! $invoice->start_date !!}</td></tr>
|
|
<tr><td style="text-align: right;">{{ctrans('texts.next_send_date')}}</td><td>{!! $invoice->next_send_date !!}</td></tr>
|
|
<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>
|
|
<tr><td style="text-align: right;">{{ctrans('texts.amount')}}</td><td>{!! $invoice->amount !!}</td></tr>
|
|
|
|
</table>
|
|
|
|
<table class="table table-responsive-sm table-sm">
|
|
@foreach($invoice->invoices as $inv)
|
|
{{ $inv->id }} - {{ $inv->amount }}
|
|
@endforeach
|
|
</table>
|
|
|
|
@if($invoice->remaining_cycles >=1)
|
|
<div class="pull-right">
|
|
<button class="btn btn-primary">Cancel</button>
|
|
</div>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
</body>
|
|
@endsection
|
|
@push('css')
|
|
@endpush
|
|
@push('scripts')
|
|
@endpush
|
|
@section('footer')
|
|
@endsection
|
|
|