@extends('layouts.main')
@section('content')
@if($data['type'] == 'avassets')
@include('assets.submenu-prod')
@elseif($data['type'] == 'it')
@include('assets.submenu')
@elseif($data['type'] == 'mobile')
@include('assets.submenu-mobile')
@elseif($data['type'] == 'network')
@include('assets.submenu-network')
@elseif($data['type'] == 'research')
@include('assets.submenu-research')
@endif
@include('partials.breadcrumb', ['breadcrumbTitle' => $data['title'], 'parentUrl' => $data['parentUrl'], 'parentTitle'
=> $data['parent']])
@include('partials.error')
@include('partials.success')
@include('partials.error-message')
@if (Route::currentRouteName() == 'mobile-assets.show')
@php $editPermission = 'Mobile Assets Edit'; @endphp
@elseif(Route::currentRouteName() == "search-network-assets")
@php $editPermission = 'Network Assets Edit'; @endphp
@elseif(Route::currentRouteName() == "av-assets-search")
@php $editPermission = 'AV Assets Edit'; @endphp
@elseif(Route::currentRouteName() == "search-research-assets")
@php $editPermission = 'Research Assets Edit'; @endphp
@else
@php $editPermission = 'IT Assets Edit'; @endphp
@endif
@include('partials.error')
@php $assetLink = route('assets.show', $asset->id); @endphp
@if (Route::currentRouteName() == 'mobile-assets.show')
@php $assetLink = route('mobile-assets.show', $asset->id); @endphp
@endif
@if(session()->has('success-message'))
{{ session()->get('success-message') }}
@endif
@if(session()->has('error-message'))
{{ session()->get('error-message') }}
@endif
@if($asset!=null)
@include('partials.sync-messages')
@include('assets.detail-page.partials.asset-action-buttons')
@include('assets.detail-page.partials.asset-details-section')
@include('assets.detail-page.partials.asset-status-section')
@include('assets.detail-page.partials.dates-section')
@include('assets.detail-page.partials.procurement-section')
@include('assets.detail-page.partials.end-point-section')
@include('assets.detail-page.partials.compliance-section')
@include('assets.detail-page.partials.revivn-section')
@include('assets.detail-page.partials.zoom-section')
@else
@endif
@if ($asset->assetVulnerabilty && count($asset->assetVulnerabilty) > 0)
@include('assets.partials.assets-vulnerability')
@endif
@if($asset!=null)
Comments ({{count($asset->assetComment)}})
@include('assets.partials.comment', ['comments' => $asset->assetComment ])
Asset History ({{ is_countable($asset->assethistory) ? count($asset->assethistory) : 0}})
@include('assets.partials.history')
Asset Health
@include('assets.partials.health', ['healthReports' => $assetHealth ])
@endif
@if($asset!=null)
@include('assets.partials.status-update-modals')
@include('assets.modals.add-comment')
@include('assets.modals.change-user')
@include('assets.detail-page.modals.detail-page-link-asset')
@include('assets.detail-page.modals.detail-page-move-asset')
@include('assets.detail-page.modals.detail-page-return-asset')
@include('assets.detail-page.modals.edit-hw-specs-modal')
@endif
@stop
@section('help-links')
@include('help.help-links',['helpLink'=>config('help-links.help_links.assets'),'helpTitle'=>config('help-links.help_titles.assets')])
@endsection
@section('after_scripts')
@include('assets.partials.scripts.search')
@include('assets.partials.scripts.dropdown-script')
@include('assets.detail-page.scripts.detail-scripts')
@include('assets.partials.scripts.attribute-update-scripts')
@include('assets.detail-page.scripts.edit-hw-specs-scripts')
@include('security.crowdstrike.scripts.common')
@include('assets.partials.scripts.vulnerability-script')
@include('reports.scripts.common')
@include('reports.scripts.datatable')
@endsection