@php
    $files = [
        [ 'name' =>'/js/bs4-network-monitor.js',
          'async' => 1],
    ];
@endphp
@foreach($files as $file)
    @if( file_exists(public_path($file['name'])) )
    <script src="{{ $file['name'] }}" @if(@$file['defer']) defer @endif @if(@$file['async']) async @endif></script>
    @endif
@endforeach
