@include('partials.clientheader')
{{ __('Item name') }} |
{{ __('Item price') }} |
{{ __('Hours used') }} |
{{ __('Total') }} |
@foreach($invoice->invoiceLines as $item)
Notice: Undefined variable: item in C:\xampp\htdocs\crm\resources\views\invoices\show.blade.php on line 27
Notice: Trying to get property 'quantity' of non-object in C:\xampp\htdocs\crm\resources\views\invoices\show.blade.php on line 27
Notice: Undefined variable: item in C:\xampp\htdocs\crm\resources\views\invoices\show.blade.php on line 27
Notice: Trying to get property 'price' of non-object in C:\xampp\htdocs\crm\resources\views\invoices\show.blade.php on line 27
{{$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