added info message #315

This commit is contained in:
denisdulici
2018-04-28 11:56:11 +03:00
parent 17758a24cc
commit 0efd3721f6
7 changed files with 81 additions and 26 deletions

View File

@ -15,5 +15,6 @@ return [
'weeks' => 'Week(s)',
'months' => 'Month(s)',
'years' => 'Year(s)',
'message' => 'This is a recurring :type and the next :type will be automatically generated at :date',
];

View File

@ -3,6 +3,18 @@
@section('title', trans_choice('general.bills', 1) . ': ' . $bill->bill_number)
@section('content')
@if ($bill->recurring()->count())
<div class="callout callout-info">
<h4>{{ trans('recurring.recurring') }}</h4>
<p>{{ trans('recurring.message', [
'type' => mb_strtolower(trans_choice('general.bills', 1)),
'date' => $bill->recurring->schedule()->next()->getStart()->format($date_format)
]) }}
</p>
</div>
@endif
<div class="box box-success">
<div class="bill">
<span class="badge bg-aqua">{{ $bill->status->name }}</span>

View File

@ -3,6 +3,18 @@
@section('title', trans('general.title.edit', ['type' => trans_choice('general.payments', 1)]))
@section('content')
@if ($payment->recurring()->count())
<div class="callout callout-info">
<h4>{{ trans('recurring.recurring') }}</h4>
<p>{{ trans('recurring.message', [
'type' => mb_strtolower(trans_choice('general.payments', 1)),
'date' => $payment->recurring->schedule()->next()->getStart()->format($date_format)
]) }}
</p>
</div>
@endif
<!-- Default box -->
<div class="box box-success">
{!! Form::model($payment, [

View File

@ -3,6 +3,18 @@
@section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number)
@section('content')
@if ($invoice->recurring()->count())
<div class="callout callout-info">
<h4>{{ trans('recurring.recurring') }}</h4>
<p>{{ trans('recurring.message', [
'type' => mb_strtolower(trans_choice('general.invoices', 1)),
'date' => $invoice->recurring->schedule()->next()->getStart()->format($date_format)
]) }}
</p>
</div>
@endif
<div class="box box-success">
<section class="invoice">
<span class="badge bg-aqua">{{ $invoice->status->name }}</span>

View File

@ -3,6 +3,18 @@
@section('title', trans('general.title.edit', ['type' => trans_choice('general.revenues', 1)]))
@section('content')
@if ($revenue->recurring()->count())
<div class="callout callout-info">
<h4>{{ trans('recurring.recurring') }}</h4>
<p>{{ trans('recurring.message', [
'type' => mb_strtolower(trans_choice('general.revenues', 1)),
'date' => $revenue->recurring->schedule()->next()->getStart()->format($date_format)
]) }}
</p>
</div>
@endif
<!-- Default box -->
<div class="box box-success">
{!! Form::model($revenue, [