@use(App\Models\Supplier) @use(Carbon\Carbon)
@foreach (Supplier::offeringTypes($spo) as $key => $offering) @if(Arr::get($spo->detail->connections,$key)) @else @endif @endforeach
Service Type User Name Password URL Last Connect Offerings
{{ $offering->type }}{{ Arr::get($spo->detail->connections,$key.'.user') }} {{ Arr::get($spo->detail->connections,$key.'.pass') }} {{ Arr::get($spo->detail->connections,$key.'.url') }} {{ Carbon::createFromFormat('Y-m-d',Arr::get($spo->detail->connections,$key.'.last'))->format('Y-m-d') }} {{ number_format($offering->items->count()) }}