2024-08-18 03:58:18 +00:00
|
|
|
<!-- $spo=Supplier::class -->
|
|
|
|
@use(App\Models\Supplier)
|
|
|
|
@use(Carbon\Carbon)
|
|
|
|
|
2021-12-24 01:14:01 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-9">
|
|
|
|
<table class="table table-sm">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Service Type</th>
|
|
|
|
<th>User Name</th>
|
|
|
|
<th>Password</th>
|
|
|
|
<th>URL</th>
|
|
|
|
<th>Last Connect</th>
|
|
|
|
<th class="text-right">Offerings</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
2024-08-18 03:58:18 +00:00
|
|
|
@foreach (Supplier::offeringTypes($spo) as $key => $offering)
|
2021-12-24 01:14:01 +00:00
|
|
|
<tr>
|
|
|
|
<th>{{ $offering->type }}</th>
|
2024-08-18 03:58:18 +00:00
|
|
|
@if(Arr::get($spo->detail->connections,$key))
|
|
|
|
<td>{{ Arr::get($spo->detail->connections,$key.'.user') }}</td>
|
|
|
|
<td>{{ Arr::get($spo->detail->connections,$key.'.pass') }}</td>
|
|
|
|
<td>{{ Arr::get($spo->detail->connections,$key.'.url') }}</td>
|
|
|
|
<td>{{ Carbon::createFromFormat('Y-m-d',Arr::get($spo->detail->connections,$key.'.last'))->format('Y-m-d') }}</td>
|
2021-12-24 01:14:01 +00:00
|
|
|
<td class="text-right">{{ number_format($offering->items->count()) }}</td>
|
|
|
|
@else
|
|
|
|
<td colspan="5"> </td>
|
|
|
|
@endif
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|