|
@@ -1,3 +1,5 @@
|
|
|
+<?php /* DO NOT GENERATE */ ?>
|
|
|
+
|
|
|
@extends('admin.pros.view')
|
|
|
@section('content-inner')
|
|
|
|
|
@@ -13,28 +15,30 @@
|
|
|
<div class="table-responsive p-0 bg-white border stag-table stag-table-sub">
|
|
|
<table class="table table-hover text-nowrap">
|
|
|
<thead>
|
|
|
- <tr>
|
|
|
- <th> </th>
|
|
|
-<th>Created At</th>
|
|
|
-<th>Pro</th>
|
|
|
-<th>Client</th>
|
|
|
-<th>Plus Or Minus</th>
|
|
|
-<th>Reason Type</th>
|
|
|
-<th>Amount</th>
|
|
|
-<th>Resulting Balance</th>
|
|
|
- </tr>
|
|
|
+ <tr>
|
|
|
+ <th> </th>
|
|
|
+ <th>Created At</th>
|
|
|
+ <th>Pro</th>
|
|
|
+ <th>Company</th>
|
|
|
+ <th>Client</th>
|
|
|
+ <th>Plus Or Minus</th>
|
|
|
+ <th>Reason Type</th>
|
|
|
+ <th>Amount</th>
|
|
|
+ <th>Resulting Balance</th>
|
|
|
+ </tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
@foreach($subRecords as $subRecord)
|
|
|
<tr>
|
|
|
<td><a href="/transactions/view/{{ $subRecord->uid }}/SUB_dashboard"><i class="fas fa-share-square"></i></a></td>
|
|
|
-<td><a href="/transactions/view/{{ $subRecord->uid }}/SUB_dashboard"><?= friendly_date_time($subRecord->created_at) ?></a></td>
|
|
|
-<td><?= value_from_rs($result_pros, 'name_display', [['id', '=', $subRecord->pro_id], ], 'all'); ?></td>
|
|
|
-<td><?= value_from_rs($result_clients, 'name_display', [['id', '=', $subRecord->client_id], ], 'all'); ?></td>
|
|
|
-<td><?= $subRecord->plus_or_minus ?></td>
|
|
|
-<td><?= $subRecord->reason_type ?></td>
|
|
|
-<td><?= $subRecord->amount ?></td>
|
|
|
-<td><?= $subRecord->resulting_balance ?></td>
|
|
|
+ <td><a href="/transactions/view/{{ $subRecord->uid }}/SUB_dashboard"><?= friendly_date_time($subRecord->created_at) ?></a></td>
|
|
|
+ <td><?= value_from_rs($result_pros, 'name_display', [['id', '=', $subRecord->pro_id], ], 'all'); ?></td>
|
|
|
+ <td>{{isset($companyPros[$subRecord->company_pro_id])?$companyPros[$subRecord->company_pro_id]->company->name:'-'}}</td>
|
|
|
+ <td><?= value_from_rs($result_clients, 'name_display', [['id', '=', $subRecord->client_id], ], 'all'); ?></td>
|
|
|
+ <td><?= $subRecord->plus_or_minus ?></td>
|
|
|
+ <td><?= $subRecord->reason_type ?></td>
|
|
|
+ <td><?= $subRecord->amount ?></td>
|
|
|
+ <td><?= $subRecord->resulting_balance ?></td>
|
|
|
</tr>
|
|
|
@endforeach
|
|
|
</tbody>
|