Browse Source

Fixed some table width on invoice item list

pull/6/head
Nafies Luthfi 8 years ago
parent
commit
ce960a4cf3
  1. 6
      resources/views/invoice-drafts/partials/draft-confirm.blade.php
  2. 16
      resources/views/invoices/pdf.blade.php
  3. 6
      resources/views/invoices/show.blade.php

6
resources/views/invoice-drafts/partials/draft-confirm.blade.php

@ -46,9 +46,9 @@
<tbody> <tbody>
@forelse($draft->items() as $key => $item) @forelse($draft->items() as $key => $item)
<tr> <tr>
<td>{{ $key + 1 }}</td>
<td>{!! nl2br($item->description) !!}</td>
<td class="text-right">{{ formatRp($item->amount) }}</td>
<td width="5%">{{ $key + 1 }}</td>
<td width="70%">{!! nl2br($item->description) !!}</td>
<td width="25%" class="text-right">{{ formatRp($item->amount) }}</td>
</tr> </tr>
@empty @empty
@endforelse @endforelse

16
resources/views/invoices/pdf.blade.php

@ -2,7 +2,7 @@
<html lang="en"> <html lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>{{ trans('invoice.print') }} - {{ $invoice->number }}</title>
<title>INV-{{ $invoice->number }}</title>
<style> <style>
html { html {
/*margin: 10px 20px 0px 20px;*/ /*margin: 10px 20px 0px 20px;*/
@ -72,7 +72,7 @@
@endphp @endphp
<p><strong>{{ $customer->name }}</strong></p> <p><strong>{{ $customer->name }}</strong></p>
@if ($customer->address) @if ($customer->address)
<p style="max-width: 250px">{!! nl2br($customer->address) !!}</p>
<p style="max-width: 250px;font-size: 14px">{!! nl2br($customer->address) !!}</p>
@endif @endif
@if ($customer->phone) @if ($customer->phone)
<p>{{ trans('contact.phone') }} : {{ $customer->phone }}</p> <p>{{ trans('contact.phone') }} : {{ $customer->phone }}</p>
@ -94,12 +94,12 @@
<tr><td colspan="3">{{ trans('invoice.items') }} :</td></tr> <tr><td colspan="3">{{ trans('invoice.items') }} :</td></tr>
<tr> <tr>
<td colspan="3"> <td colspan="3">
<table border="1" class="receipt-table" style="width: 100%">
<table border="1" class="receipt-table" style="width: 100%;font-size: 14px">
<thead style="background-color: #FFC800"> <thead style="background-color: #FFC800">
<tr> <tr>
<th>{{ trans('app.table_no') }}</th>
<th class="text-left">{{ trans('invoice.item_description') }}</th>
<th>{{ trans('invoice.item_amount') }}</th>
<th width="5%">{{ trans('app.table_no') }}</th>
<th width="70%" class="text-left">{{ trans('invoice.item_description') }}</th>
<th width="25%">{{ trans('invoice.item_amount') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -121,8 +121,8 @@
</td> </td>
</tr> </tr>
<tr style="vertical-align: top;"> <tr style="vertical-align: top;">
<td>{{ trans('payment.words_amount') }} : </td>
<td colspan="2" style="font-weight: bold;">
<td style="padding-top: 20px;">{{ trans('payment.words_amount') }} : </td>
<td colspan="2" style="font-weight: bold; padding-top: 20px">
{{ ucwords(Terbilang::make($invoice->amount)) }} Rupiah {{ ucwords(Terbilang::make($invoice->amount)) }} Rupiah
</td> </td>
</tr> </tr>

6
resources/views/invoices/show.blade.php

@ -25,9 +25,9 @@
<table class="table table-condensed"> <table class="table table-condensed">
<thead> <thead>
<tr> <tr>
<th>{{ trans('app.table_no') }}</th>
<th>{{ trans('invoice.item_description') }}</th>
<th class="text-right">{{ trans('invoice.item_amount') }}</th>
<th width="5%">{{ trans('app.table_no') }}</th>
<th width="70%">{{ trans('invoice.item_description') }}</th>
<th width="25%" class="text-right">{{ trans('invoice.item_amount') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

Loading…
Cancel
Save