mirror of
https://github.com/crater-invoice/crater.git
synced 2025-10-31 21:51:10 -04:00
build version 400
This commit is contained in:
@ -1,13 +1,13 @@
|
||||
<table width="100%" class="items-table" cellspacing="0" border="0">
|
||||
<tr class="item-table-heading-row">
|
||||
<th width="2%" class="item-table-heading text-right pr-20">#</th>
|
||||
<th width="40%" class="item-table-heading text-left pl-0">Items</th>
|
||||
<th class="item-table-heading text-right pr-20">Quantity</th>
|
||||
<th class="item-table-heading text-right pr-20">Price</th>
|
||||
<th width="2%" class="pr-20 text-right item-table-heading">#</th>
|
||||
<th width="40%" class="pl-0 text-left item-table-heading">@lang('pdf_items_label')</th>
|
||||
<th class="pr-20 text-right item-table-heading">@lang('pdf_quantity_label')</th>
|
||||
<th class="pr-20 text-right item-table-heading">@lang('pdf_price_label')</th>
|
||||
@if($estimate->discount_per_item === 'YES')
|
||||
<th class="item-table-heading text-right pl-10">Discount</th>
|
||||
<th class="pl-10 text-right item-table-heading">@lang('pdf_discount_label')</th>
|
||||
@endif
|
||||
<th class="item-table-heading text-right">Amount </th>
|
||||
<th class="text-right item-table-heading">@lang('pdf_amount_label')</th>
|
||||
</tr>
|
||||
@php
|
||||
$index = 1
|
||||
@ -15,13 +15,13 @@
|
||||
@foreach ($estimate->items as $item)
|
||||
<tr class="item-row">
|
||||
<td
|
||||
class="item-cell text-right pr-20"
|
||||
class="pr-20 text-right item-cell"
|
||||
style="vertical-align: top;"
|
||||
>
|
||||
{{$index}}
|
||||
</td>
|
||||
<td
|
||||
class="item-cell text-left pl-0"
|
||||
class="pl-0 text-left item-cell"
|
||||
>
|
||||
<span>{{ $item->name }}</span><br>
|
||||
<span
|
||||
@ -31,19 +31,19 @@
|
||||
</span>
|
||||
</td>
|
||||
<td
|
||||
class="item-cell text-right pr-20"
|
||||
class="pr-20 text-right item-cell"
|
||||
style="vertical-align: top;"
|
||||
>
|
||||
{{$item->quantity}}
|
||||
</td>
|
||||
<td
|
||||
class="item-cell text-right pr-20"
|
||||
class="pr-20 text-right item-cell"
|
||||
style="vertical-align: top;"
|
||||
>
|
||||
{!! format_money_pdf($item->price, $estimate->user->currency) !!}
|
||||
</td>
|
||||
@if($estimate->discount_per_item === 'YES')
|
||||
<td class="item-cell text-right pl-10" style="vertical-align: top;">
|
||||
<td class="pl-10 text-right item-cell" style="vertical-align: top;">
|
||||
@if($item->discount_type === 'fixed')
|
||||
{!! format_money_pdf($item->discount_val, $estimate->user->currency) !!}
|
||||
@endif
|
||||
@ -52,7 +52,7 @@
|
||||
@endif
|
||||
</td>
|
||||
@endif
|
||||
<td class="item-cell text-right" style="vertical-align: top;">
|
||||
<td class="text-right item-cell" style="vertical-align: top;">
|
||||
{!! format_money_pdf($item->total, $estimate->user->currency) !!}
|
||||
</td>
|
||||
</tr>
|
||||
@ -67,7 +67,7 @@
|
||||
<div class="total-display-container">
|
||||
<table width="100%" cellspacing="0px" border="0" class="total-display-table @if(count($estimate->items) > 12) page-break @endif">
|
||||
<tr>
|
||||
<td class="border-0 total-table-attribute-label">Subtotal</td>
|
||||
<td class="border-0 total-table-attribute-label">@lang('pdf_subtotal')</td>
|
||||
<td class="border-0 item-cell total-table-attribute-value ">{!! format_money_pdf($estimate->sub_total, $estimate->user->currency) !!}</td>
|
||||
</tr>
|
||||
|
||||
@ -77,7 +77,7 @@
|
||||
<td class="border-0 total-table-attribute-label">
|
||||
{{$labels[$i]}}
|
||||
</td>
|
||||
<td class="border-0 item-cell total-table-attribute-value">
|
||||
<td class="border-0 item-cell total-table-attribute-value">
|
||||
{!! format_money_pdf($taxes[$i], $estimate->user->currency) !!}
|
||||
</td>
|
||||
</tr>
|
||||
@ -97,15 +97,15 @@
|
||||
|
||||
@if ($estimate->discount_per_item === 'NO')
|
||||
<tr>
|
||||
<td class="border-0 total-table-attribute-label pl-10">
|
||||
<td class="pl-10 border-0 total-table-attribute-label">
|
||||
@if($estimate->discount_type === 'fixed')
|
||||
Discount
|
||||
@lang('pdf_discount_label')
|
||||
@endif
|
||||
@if($estimate->discount_type === 'percentage')
|
||||
Discount ({{$estimate->discount}}%)
|
||||
@lang('pdf_discount_label') ({{$estimate->discount}}%)
|
||||
@endif
|
||||
</td>
|
||||
<td class="border-0 item-cell total-table-attribute-value text-right">
|
||||
<td class="text-right border-0 item-cell total-table-attribute-value">
|
||||
@if($estimate->discount_type === 'fixed')
|
||||
{!! format_money_pdf($estimate->discount_val, $estimate->user->currency) !!}
|
||||
@endif
|
||||
@ -120,8 +120,8 @@
|
||||
<td class="py-3"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="border-0 total-border-left total-table-attribute-label">Total</td>
|
||||
<td class="border-0 total-border-right item-cell py-8 total-table-attribute-value text-primary">
|
||||
<td class="border-0 total-border-left total-table-attribute-label">@lang('pdf_total')</td>
|
||||
<td class="py-8 border-0 total-border-right item-cell total-table-attribute-value" style="color: #5851D8">
|
||||
{!! format_money_pdf($estimate->total, $estimate->user->currency)!!}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user