@extends('layouts.master') @section('content')
@include('partials.clientheader')

{{ __('Order summary') }}

@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
@endforeach
{{ __('Item name') }} {{ __('Item price') }} {{ __('Hours used') }} {{ __('Total') }}
{{$item->title}} {{$item->price}},- {{$item->quantity}} {{$totalPrice}},-
{{ __('Total') }} {{$finalPrice}},-
@if(!$invoice->sent_at) @endif

Invoice information

{{ __('Invoice sent') }}: {{$invoice->sent_at ? __('yes') : __('no') }}
{{ __('Payment Received') }}: {{$invoice->payment_received_at ? __('yes') : __('no') }}
@if($invoice->payment_received_at) {{ date('d-m-Y', strtotime($invoice->payment_received_at))}} @endif

@if(!$invoice->sent_at)
@endif @if($invoice->sent_at) @if(!$invoice->payment_received_at)

{{ __('Invoice paid date') }}

{!! 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