items of invoices and bills moved to partials path
This commit is contained in:
parent
0e73a2bf69
commit
a8fe772581
22
resources/views/partials/documents/item/print.blade.php
Normal file
22
resources/views/partials/documents/item/print.blade.php
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
<tr>
|
||||||
|
@stack('name_td_start')
|
||||||
|
<td class="item">
|
||||||
|
{{ $item->name }}
|
||||||
|
@if (!empty($item->item->description))
|
||||||
|
<br><small>{!! \Illuminate\Support\Str::limit($item->item->description, 500) !!}</small>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
@stack('name_td_end')
|
||||||
|
|
||||||
|
@stack('quantity_td_start')
|
||||||
|
<td class="quantity">{{ $item->quantity }}</td>
|
||||||
|
@stack('quantity_td_end')
|
||||||
|
|
||||||
|
@stack('price_td_start')
|
||||||
|
<td class="price">@money($item->price, $invoice->currency_code, true)</td>
|
||||||
|
@stack('price_td_end')
|
||||||
|
|
||||||
|
@stack('total_td_start')
|
||||||
|
<td class="total">@money($item->total, $invoice->currency_code, true)</td>
|
||||||
|
@stack('total_td_end')
|
||||||
|
</tr>
|
28
resources/views/partials/documents/item/show.blade.php
Normal file
28
resources/views/partials/documents/item/show.blade.php
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<tr class="d-flex flex-nowrap">
|
||||||
|
@stack('name_td_start')
|
||||||
|
<td class="col-xs-4 col-sm-5 pl-5">
|
||||||
|
{{ $item->name }}
|
||||||
|
@if (!empty($item->item->description))
|
||||||
|
<br><small class="text-pre-nowrap">{!! \Illuminate\Support\Str::limit($item->item->description, 500) !!}<small>
|
||||||
|
@endif
|
||||||
|
</td>
|
||||||
|
@stack('name_td_end')
|
||||||
|
|
||||||
|
@stack('quantity_td_start')
|
||||||
|
<td class="col-xs-4 col-sm-1 text-center">{{ $item->quantity }}</td>
|
||||||
|
@stack('quantity_td_end')
|
||||||
|
|
||||||
|
@stack('price_td_start')
|
||||||
|
<td class="col-sm-3 text-right d-none d-sm-block">@money($item->price, $invoice->currency_code, true)</td>
|
||||||
|
@stack('price_td_end')
|
||||||
|
|
||||||
|
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
||||||
|
@stack('discount_td_start')
|
||||||
|
<td class="col-sm-1 text-center d-none d-sm-block">{{ $item->discount }}</td>
|
||||||
|
@stack('discount_td_end')
|
||||||
|
@endif
|
||||||
|
|
||||||
|
@stack('total_td_start')
|
||||||
|
<td class="col-xs-4 col-sm-3 text-right pr-5">@money($item->total, $invoice->currency_code, true)</td>
|
||||||
|
@stack('total_td_end')
|
||||||
|
</tr>
|
@ -128,29 +128,8 @@
|
|||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($bill->items as $bill_item)
|
@foreach($bill->items as $item)
|
||||||
<tr>
|
@include('partials.documents.item.print')
|
||||||
@stack('name_td_start')
|
|
||||||
<td class="item">
|
|
||||||
{{ $bill_item->name }}
|
|
||||||
@if (!empty($bill_item->item->description))
|
|
||||||
<br><small>{!! \Illuminate\Support\Str::limit($bill_item->item->description, 500) !!}<small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@stack('name_td_end')
|
|
||||||
|
|
||||||
@stack('quantity_td_start')
|
|
||||||
<td class="quantity">{{ $bill_item->quantity }}</td>
|
|
||||||
@stack('quantity_td_end')
|
|
||||||
|
|
||||||
@stack('price_td_start')
|
|
||||||
<td class="price">@money($bill_item->price, $bill->currency_code, true)</td>
|
|
||||||
@stack('price_td_end')
|
|
||||||
|
|
||||||
@stack('total_td_start')
|
|
||||||
<td class="total">@money($bill_item->total, $bill->currency_code, true)</td>
|
|
||||||
@stack('total_td_end')
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -349,35 +349,8 @@
|
|||||||
<th class="col-xs-4 col-sm-3 text-right pr-5">{{ trans('bills.total') }}</th>
|
<th class="col-xs-4 col-sm-3 text-right pr-5">{{ trans('bills.total') }}</th>
|
||||||
@stack('total_th_end')
|
@stack('total_th_end')
|
||||||
</tr>
|
</tr>
|
||||||
@foreach($bill->items as $bill_item)
|
@foreach($bill->items as $item)
|
||||||
<tr class="d-flex flex-nowrap">
|
@include('partials.documents.item.show')
|
||||||
@stack('name_td_start')
|
|
||||||
<td class="col-xs-4 col-sm-5 pl-5">
|
|
||||||
{{ $bill_item->name }}
|
|
||||||
@if (!empty($bill_item->item->description))
|
|
||||||
<br><small class="text-pre-nowrap">{!! \Illuminate\Support\Str::limit($bill_item->item->description, 500) !!}<small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@stack('name_td_end')
|
|
||||||
|
|
||||||
@stack('quantity_td_start')
|
|
||||||
<td class="col-xs-4 col-sm-1 text-center">{{ $bill_item->quantity }}</td>
|
|
||||||
@stack('quantity_td_end')
|
|
||||||
|
|
||||||
@stack('price_td_start')
|
|
||||||
<td class="col-sm-3 text-right d-none d-sm-block">@money($bill_item->price, $bill->currency_code, true)</td>
|
|
||||||
@stack('price_td_end')
|
|
||||||
|
|
||||||
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
|
||||||
@stack('discount_td_start')
|
|
||||||
<td class="col-sm-1 text-center d-none d-sm-block">{{ $bill_item->discount }}</td>
|
|
||||||
@stack('discount_td_end')
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@stack('total_td_start')
|
|
||||||
<td class="col-xs-4 col-sm-3 text-right pr-5">@money($bill_item->total, $bill->currency_code, true)</td>
|
|
||||||
@stack('total_td_end')
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -145,29 +145,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($invoice->items as $invoice_item)
|
@foreach($invoice->items as $item)
|
||||||
<tr>
|
@include('partials.documents.item.print')
|
||||||
@stack('name_td_start')
|
|
||||||
<td class="item">
|
|
||||||
{{ $invoice_item->name }}
|
|
||||||
@if (!empty($invoice_item->item->description))
|
|
||||||
<br><small>{!! \Illuminate\Support\Str::limit($invoice_item->item->description, 500) !!}</small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@stack('name_td_end')
|
|
||||||
|
|
||||||
@stack('quantity_td_start')
|
|
||||||
<td class="quantity">{{ $invoice_item->quantity }}</td>
|
|
||||||
@stack('quantity_td_end')
|
|
||||||
|
|
||||||
@stack('price_td_start')
|
|
||||||
<td class="price">@money($invoice_item->price, $invoice->currency_code, true)</td>
|
|
||||||
@stack('price_td_end')
|
|
||||||
|
|
||||||
@stack('total_td_start')
|
|
||||||
<td class="total">@money($invoice_item->total, $invoice->currency_code, true)</td>
|
|
||||||
@stack('total_td_end')
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -132,29 +132,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($invoice->items as $invoice_item)
|
@foreach($invoice->items as $item)
|
||||||
<tr>
|
@include('partials.documents.item.print')
|
||||||
@stack('name_td_start')
|
|
||||||
<td class="item">
|
|
||||||
{{ $invoice_item->name }}
|
|
||||||
@if (!empty($invoice_item->item->description))
|
|
||||||
<br><small>{!! \Illuminate\Support\Str::limit($invoice_item->item->description, 500) !!}</small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@stack('name_td_end')
|
|
||||||
|
|
||||||
@stack('quantity_td_start')
|
|
||||||
<td class="quantity">{{ $invoice_item->quantity }}</td>
|
|
||||||
@stack('quantity_td_end')
|
|
||||||
|
|
||||||
@stack('price_td_start')
|
|
||||||
<td class="price">@money($invoice_item->price, $invoice->currency_code, true)</td>
|
|
||||||
@stack('price_td_end')
|
|
||||||
|
|
||||||
@stack('total_td_start')
|
|
||||||
<td class="total">@money($invoice_item->total, $invoice->currency_code, true)</td>
|
|
||||||
@stack('total_td_end')
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -114,29 +114,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
@foreach($invoice->items as $invoice_item)
|
@foreach($invoice->items as $item)
|
||||||
<tr>
|
@include('partials.documents.item.print')
|
||||||
@stack('name_td_start')
|
|
||||||
<td class="item">
|
|
||||||
{{ $invoice_item->name }}
|
|
||||||
@if (!empty($invoice_item->item->description))
|
|
||||||
<br><small>{!! \Illuminate\Support\Str::limit($invoice_item->item->description, 500) !!}</small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@stack('name_td_end')
|
|
||||||
|
|
||||||
@stack('quantity_td_start')
|
|
||||||
<td class="quantity">{{ $invoice_item->quantity }}</td>
|
|
||||||
@stack('quantity_td_end')
|
|
||||||
|
|
||||||
@stack('price_td_start')
|
|
||||||
<td class="price">@money($invoice_item->price, $invoice->currency_code, true)</td>
|
|
||||||
@stack('price_td_end')
|
|
||||||
|
|
||||||
@stack('total_td_start')
|
|
||||||
<td class="total">@money($invoice_item->total, $invoice->currency_code, true)</td>
|
|
||||||
@stack('total_td_end')
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
@ -366,35 +366,8 @@
|
|||||||
<th class="col-xs-4 col-sm-3 text-right pr-5">{{ trans('invoices.total') }}</th>
|
<th class="col-xs-4 col-sm-3 text-right pr-5">{{ trans('invoices.total') }}</th>
|
||||||
@stack('total_th_end')
|
@stack('total_th_end')
|
||||||
</tr>
|
</tr>
|
||||||
@foreach($invoice->items as $invoice_item)
|
@foreach($invoice->items as $item)
|
||||||
<tr class="d-flex flex-nowrap">
|
@include('partials.documents.item.show')
|
||||||
@stack('name_td_start')
|
|
||||||
<td class="col-xs-4 col-sm-5 pl-5">
|
|
||||||
{{ $invoice_item->name }}
|
|
||||||
@if (!empty($invoice_item->item->description))
|
|
||||||
<br><small class="text-pre-nowrap">{!! \Illuminate\Support\Str::limit($invoice_item->item->description, 500) !!}<small>
|
|
||||||
@endif
|
|
||||||
</td>
|
|
||||||
@stack('name_td_end')
|
|
||||||
|
|
||||||
@stack('quantity_td_start')
|
|
||||||
<td class="col-xs-4 col-sm-1 text-center">{{ $invoice_item->quantity }}</td>
|
|
||||||
@stack('quantity_td_end')
|
|
||||||
|
|
||||||
@stack('price_td_start')
|
|
||||||
<td class="col-sm-3 text-right d-none d-sm-block">@money($invoice_item->price, $invoice->currency_code, true)</td>
|
|
||||||
@stack('price_td_end')
|
|
||||||
|
|
||||||
@if (in_array(setting('localisation.discount_location', 'total'), ['item', 'both']))
|
|
||||||
@stack('discount_td_start')
|
|
||||||
<td class="col-sm-1 text-center d-none d-sm-block">{{ $invoice_item->discount }}</td>
|
|
||||||
@stack('discount_td_end')
|
|
||||||
@endif
|
|
||||||
|
|
||||||
@stack('total_td_start')
|
|
||||||
<td class="col-xs-4 col-sm-3 text-right pr-5">@money($invoice_item->total, $invoice->currency_code, true)</td>
|
|
||||||
@stack('total_td_end')
|
|
||||||
</tr>
|
|
||||||
@endforeach
|
@endforeach
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user