Browse Source

Add MAIL_DRIVER env variable for testing and fixed some view files

pull/1/head
Nafies Luthfi 8 years ago
parent
commit
31987995f2
  1. 1
      phpunit.xml
  2. 1
      resources/lang/id/project.php
  3. 2
      resources/views/projects/features-export-html.blade.php
  4. 12
      resources/views/reports/payments/daily.blade.php

1
phpunit.xml

@ -25,6 +25,7 @@
<env name="QUEUE_DRIVER" value="sync"/>
<env name="DB_CONNECTION" value="sqlite"/>
<env name="DB_DATABASE" value=":memory:"/>
<env name="MAIL_DRIVER" value="log"/>
</php>
<listeners>
<listener class="JohnKary\PHPUnit\Listener\SpeedTrapListener">

1
resources/lang/id/project.php

@ -36,6 +36,7 @@ return [
// Attribute
'files' => 'List Dokumen',
'features' => 'Daftar Item Pekerjaan',
'cost_proposal' => 'Pengajuan Biaya',
// Actions
'features_export_html' => 'Export HTML',

2
resources/views/projects/features-export-html.blade.php

@ -40,7 +40,7 @@
</table>
@endforeach
<h1 class="page-header text-center">Biaya Pembuatan</h1>
<h1 class="page-header text-center">{{ trans('project.cost_proposal') }}</h1>
<table width="100%" class="table table-condensed table-bordered">
<tbody>
<tr>

12
resources/views/reports/payments/daily.blade.php

@ -23,11 +23,11 @@
<table class="table table-condensed table-hover">
<thead>
<th>{{ trans('app.table_no') }}</th>
<th class="col-md-3">{{ trans('payment.project') }}</th>
<th class="col-md-2">{{ trans('payment.project') }}</th>
<th class="col-md-1 text-center">{{ trans('app.date') }}</th>
<th class="col-md-2 text-right">{{ trans('payment.amount') }}</th>
<th class="col-md-2">{{ trans('payment.customer') }}</th>
<th class="col-md-3">{{ trans('payment.description') }}</th>
<th class="col-md-2 text-center">{{ trans('payment.customer') }}</th>
<th class="col-md-5">{{ trans('payment.description') }}</th>
<th class="col-md-1">{{ trans('app.action') }}</th>
</thead>
<tbody>
@ -35,11 +35,11 @@
@forelse($payments as $key => $payment)
<tr>
<td>{{ 1 + $key }}</td>
<td>{{ $payment->project->name }}</td>
<td>{{ $payment->project->present()->projectLink() }}</td>
<td class="text-center">{{ $payment->date }}</td>
<td class="text-right">{{ $payment->present()->amount }}</td>
<td>{{ $payment->customer->name }}</td>
<td>{{ $payment->description }}</td>
<td class="text-center">{{ $payment->customer->name }}</td>
<td>{{ $payment->description }} [{{ $payment->type() }}]</td>
<td>
{!! link_to_route('payments.show','Lihat',[$payment->id],['title' => 'Lihat Detail Pembayaran','target' => '_blank','class'=>'btn btn-info btn-xs']) !!}
</td>

Loading…
Cancel
Save