@foreach ($invoice['items'] as $item)
-
- | {{ $item['position'] }} |
-
- {{ $item['title'] }}
- {{ $item['description'] }}
- |
- @toCommaFloat($item['quantity']) |
- {{ $item['unit'] }} |
- @toCurrency($item['price']) |
- @toCurrency($item['quantity'] * $item['price']) |
-
+ @if($item['isSection'])
+
+
+ {{ $item['title'] }}
+ @if($item['description'])
+ {{ $item['description'] }}
+ @endif
+ |
+
+ @else
+
+ | {{ $item['position'] }} |
+
+ {{ $item['title'] }}
+ {{ $item['description'] }}
+ |
+ @toCommaFloat($item['quantity']) |
+ {{ $item['unit'] }} |
+ @toCurrency($item['price']) |
+ @toCurrency($item['quantity'] * $item['price']) |
+
+ @endif
@endforeach
+