@if ($invoice != null)
Invoice # {{ $invoice->id }}
{{ $invoice->created_at->format('d/m/Y') }}
@endif @if ($invoice != null)
{{ $invoice->user->name }}
{{ $invoice->user->userdetail->location }}
{{ $invoice->user->phone_number }}
@if ($additem) @include('components.invoice.additem') @endif @if ($adddiscount) @include('components.invoice.adddiscount') @endif
@include('components.invoice.tables.invoice')
@endif
@if ($order != null)
Order # {{ $order->id }}
{{ $order->created_at->format('d/m/Y') }}
@endif
@include('components.order.table')
@if ($invoice != null)
@if ($invoice->created_at->format('Y-m-d') == now()->format('Y-m-d')) @if ($invoice->amount > 0)
@endif @if ($invoice->invoiceitems->count() == 0)
@endif @endif
@endif