@include('partials.clientheader')
| {{ __('Item name') }} |
{{ __('Item price') }} |
{{ __('Hours used') }} |
{{ __('Total') }} |
@foreach($invoice->invoiceLines as $item)
| {{$item->title}} |
{{$item->price}},- |
{{$item->quantity}} |
{{$totalPrice}},- |
@endforeach
|
|
{{ __('Total') }} |
{{$finalPrice}},- |
@if(!$invoice->sent_at)
@endif
@endif
@if($invoice->sent_at)
@if(!$invoice->payment_received_at)
{!! Form::open([
'method' => 'post',
'route' => ['invoice.payment.date', $invoice->id],
]) !!}
{!! Form::date('payment_date', \Carbon\Carbon::now(), ['class' => 'form-control']) !!}
{!! Form::submit('Set invoice as paid', ['class' => 'btn btn-success form-control closebtn']) !!}
{!! Form::close() !!}
@else
{!! Form::open([
'method' => 'post',
'route' => ['invoice.payment.reopen', $invoice->id],
]) !!}
{!! Form::submit('Set invoice as not paid', ['class' => 'btn btn-danger form-control closebtn']) !!}
{!! Form::close() !!}
@endif
@endif
@include('invoices._invoiceLineModal', ['title' => $invoice->title, 'id' => $invoice->id, 'type' => 'invoice'])
@endsection