@if ($assetType == 0)
{!! \App\Models\CAD\Asset::formatHostNameColumn($asset->server_name, " ") !!} |
{!! $asset->ip_address !!} |
{!! is_array($asset->open_ports) ? implode(', ', $asset->open_ports) : str_replace(['"','[',']'], '',$asset->open_ports) !!} |
{!! $asset->os !!} |
{!! $asset->lvl_cb !!} |
{!! $asset->site_id !!} |
{!! $asset->mac_address !!} |
{!! $asset->vendor !!} |
{!! $asset->model !!} |
{!! $asset->version !!} |
{!! is_array($asset->open_ports_authorized) ? implode(', ', $asset->open_ports_authorized) : str_replace(['"','[',']'], '',$asset->open_ports_authorized) !!} |
{!! $asset->system_type !!} |
@endif
@if($assetType != 0)
{!! $asset->name !!} |
{!! $asset->ip_address !!} |
{!! $asset->port !!} |
{!! $asset->lvl_cb !!} |
{!! $asset->p_lang !!} |
{!! $asset->app_lang !!} |
@endif
{!! $asset->description !!} |
@php if ($asset->date_scanned !== null) { echo date('m/d/Y', strtotime($asset->date_scanned)); } @endphp |
@if($assetType == 0)
@php
$location = data_get($asset::LOCATIONS, $asset->location);
@endphp
{{ is_array($location) ? null : $location }} |
{{ $asset->divisionName }} |
@endif
@php
$createdType = data_get($asset::CREATED_TYPES, $asset->created_type);
@endphp
{{ is_array($createdType) ? null : $createdType }} |
{{ $asset->created_at->format('m/d/Y') }} |
@if ($assetType == 0)
{{ $asset->baseline }} |
@endif
@endforeach