Skip to content

Commit ff340c4

Browse files
committed
Show product is in xero items
1 parent d436e79 commit ff340c4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

resources/views/products/partials/card-index.blade.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<table class="table mb-0 card-table table-hover">
2020
<thead>
2121
<tr>
22-
<th scope="col">{{ ucfirst(__('laravel-crm::lang.name')) }}</th>
22+
<th scope="col" colspan="2">{{ ucfirst(__('laravel-crm::lang.name')) }}</th>
2323
<th scope="col">{{ ucfirst(__('laravel-crm::lang.code')) }}</th>
2424
<th scope="col">{{ ucfirst(__('laravel-crm::lang.category')) }}</th>
2525
<th scope="col">{{ ucfirst(__('laravel-crm::lang.unit')) }}</th>
@@ -35,6 +35,7 @@
3535
@foreach($products as $product)
3636
<tr class="has-link" data-url="{{ url(route('laravel-crm.products.show',$product)) }}">
3737
<td>{{ $product->name }}</td>
38+
<td>@if($product->xeroItem)<img src="/vendor/laravel-crm/img/xero-icon.png" height="20" />@endif</td>
3839
<td>{{ $product->code }}</td>
3940
<td>{{ $product->productCategory->name ?? null }}</td>
4041
<td>{{ $product->unit }}</td>

resources/views/products/partials/card-show.blade.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@
5252
<dd class="col-sm-9">{{ $product->productCategory->name ?? null }}</dd>
5353
<dt class="col-sm-3 text-right">{{ ucfirst(__('laravel-crm::lang.description')) }}</dt>
5454
<dd class="col-sm-9">{{ $product->description }}</dd>
55+
<dt class="col-sm-3 text-right">{{ ucfirst(__('laravel-crm::lang.integrations')) }}</dt>
56+
<dd class="col-sm-9">@if($product->xeroItem)<img src="/vendor/laravel-crm/img/xero-icon.png" height="20" />@endif</dd>
5557
</dl>
5658
<h6 class="text-uppercase mt-4">{{ ucfirst(__('laravel-crm::lang.owner')) }}</h6>
5759
<hr />

0 commit comments

Comments
 (0)