Fixing XSS vulnerability by using the proper output tags

This commit is contained in:
Nabeel Shahzad
2018-03-12 17:58:12 -05:00
parent 17f9464208
commit 8076c2d8c1
165 changed files with 1187 additions and 1187 deletions
+10 -10
View File
@@ -8,17 +8,17 @@
{{-- Don't remove this! It's required --}}
<meta name="csrf-token" content="{{ csrf_token() }}">
<title>@yield('title') - {!! config('app.name') !!}</title>
<title>@yield('title') - {{ config('app.name') }}</title>
<link rel="shortcut icon" type="image/png" href="{!! public_asset('/assets/frontend/img/favicon.png') !!}"/>
<link rel="shortcut icon" type="image/png" href="{{ public_asset('/assets/frontend/img/favicon.png') }}"/>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet"/>
<link href="{!! public_asset('/assets/frontend/css/bootstrap.min.css') !!}" rel="stylesheet"/>
<link href="{!! public_asset('/assets/frontend/css/now-ui-kit.css') !!}" rel="stylesheet"/>
<link href="{!! public_asset('/assets/frontend/css/styles.css') !!}" rel="stylesheet"/>
<link href="{{ public_asset('/assets/frontend/css/bootstrap.min.css') }}" rel="stylesheet"/>
<link href="{{ public_asset('/assets/frontend/css/now-ui-kit.css') }}" rel="stylesheet"/>
<link href="{{ public_asset('/assets/frontend/css/styles.css') }}" rel="stylesheet"/>
{{-- This is required to include --}}
<link href="{!! public_asset('/assets/system/css/vendor.css') !!}" rel="stylesheet"/>
<link href="{{ public_asset('/assets/system/css/vendor.css') }}" rel="stylesheet"/>
@yield('css')
@@ -38,8 +38,8 @@
<span class="navbar-toggler-bar bar3"></span>
</button>
<p class="navbar-brand text-white" data-placement="bottom" target="_blank">
<a href="{!! url('/') !!}">
<img src="{!! public_asset('/assets/frontend/img/logo_blue_bg.svg') !!}" width="135px" style=""/>
<a href="{{ url('/') }}">
<img src="{{ public_asset('/assets/frontend/img/logo_blue_bg.svg') }}" width="135px" style=""/>
</a>
</p>
</div>
@@ -72,8 +72,8 @@
</div>
<script defer src="https://use.fontawesome.com/releases/v5.0.6/js/all.js"></script>
<script src="{!! public_asset('/assets/system/js/vendor.js') !!}?v={!! time() !!}"></script>
<script src="{!! public_asset('/assets/system/js/phpvms.js') !!}?v={!! time() !!}"></script>
<script src="{{ public_asset('/assets/system/js/vendor.js') }}?v={{ time() }}"></script>
<script src="{{ public_asset('/assets/system/js/phpvms.js') }}?v={{ time() }}"></script>
<script>
$(document).ready(function () {
@@ -7,12 +7,12 @@
<link rel="apple-touch-icon" sizes="76x76" href="/assets/frontend/img/apple-icon.png">
<link rel="icon" type="image/png" href="/assets/frontend/img/favicon.png">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>@yield('title') - {!! config('app.name') !!}</title>
<title>@yield('title') - {{ config('app.name') }}</title>
<meta content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, shrink-to-fit=no' name='viewport' />
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,200" rel="stylesheet" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/latest/css/font-awesome.min.css" />
<link href="{!! public_asset('/assets/frontend/css/bootstrap.min.css') !!}" rel="stylesheet" />
<link href="{!! public_asset('/assets/frontend/css/now-ui-kit.css') !!}" rel="stylesheet" />
<link href="{{ public_asset('/assets/frontend/css/bootstrap.min.css') }}" rel="stylesheet" />
<link href="{{ public_asset('/assets/frontend/css/now-ui-kit.css') }}" rel="stylesheet" />
@yield('css')
</head>
@@ -40,7 +40,7 @@
</div>
</body>
<script src="{!! public_asset('/assets/frontend/js/core/jquery.3.2.1.min.js') !!}" type="text/javascript"></script>
<script src="{{ public_asset('/assets/frontend/js/core/jquery.3.2.1.min.js') }}" type="text/javascript"></script>
@yield('scripts')
@@ -7,7 +7,7 @@
<form class="form" method="POST" action="{{ url('/login') }}">
<div class="header header-primary text-center">
<div class="logo-container" style="width: 320px;">
<img src="{!! public_asset('/assets/frontend/img/logo.svg') !!}" width="320" height="320" style="background: #FFF">
<img src="{{ public_asset('/assets/frontend/img/logo.svg') }}" width="320" height="320" style="background: #FFF">
</div>
</div>
<div class="content">
@@ -6,14 +6,14 @@
<div class="col-sm-3"></div>
<div class="col-sm-6">
{!! Form::open(['url' => '/register', 'class' => 'form-signin']) !!}
{{ Form::open(['url' => '/register', 'class' => 'form-signin']) }}
<div class="panel periodic-login">
<div class="panel-body">
<h2>Register</h2>
<label for="name" class="control-label">Full Name</label>
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{{ Form::text('name', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('name'))
<p class="text-danger">{{ $errors->first('name') }}</p>
@@ -21,7 +21,7 @@
<label for="email" class="control-label">Email Address</label>
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
{!! Form::text('email', null, ['class' => 'form-control']) !!}
{{ Form::text('email', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('email'))
<p class="text-danger">{{ $errors->first('email') }}</p>
@@ -29,7 +29,7 @@
<label for="airline" class="control-label">Airline</label>
<div class="input-group form-group-no-border{{ $errors->has('airline') ? ' has-danger' : '' }}">
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) !!}
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
</div>
@if ($errors->has('airline_id'))
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
@@ -37,7 +37,7 @@
<label for="home_airport" class="control-label">Home Airport</label>
<div class="input-group form-group-no-border{{ $errors->has('home_airport') ? ' has-danger' : '' }}">
{!! Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
</div>
@if ($errors->has('home_airport_id'))
<p class="text-danger">{{ $errors->first('home_airport_id') }}</p>
@@ -45,7 +45,7 @@
<label for="timezone" class="control-label">Timezone</label>
<div class="input-group form-group-no-border{{ $errors->has('timezone') ? ' has-danger' : '' }}">
{!! Form::select('timezone', $timezones, null, ['id'=>'timezone', 'class' => 'form-control select2' ]); !!}
{{ Form::select('timezone', $timezones, null, ['id'=>'timezone', 'class' => 'form-control select2' ]) }}
</div>
@if ($errors->has('timezone'))
<p class="text-danger">{{ $errors->first('timezone') }}</p>
@@ -53,7 +53,7 @@
<label for="password" class="control-label">Password</label>
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
{!! Form::password('password', ['class' => 'form-control']) !!}
{{ Form::password('password', ['class' => 'form-control']) }}
</div>
@if ($errors->has('password'))
<p class="text-danger">{{ $errors->first('password') }}</p>
@@ -61,7 +61,7 @@
<label for="password_confirmation" class="control-label">Confirm Password</label>
<div class="input-group form-group-no-border{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}">
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
</div>
@if ($errors->has('password_confirmation'))
<p class="text-danger">{{ $errors->first('password_confirmation') }}</p>
@@ -71,7 +71,7 @@
<div style="width: 100%; text-align: right; padding-top: 20px;">
By registering, you agree to the Term and Conditions<br /><br />
{!! Form::submit('Register!', ['class' => 'btn btn-primary']) !!}
{{ Form::submit('Register!', ['class' => 'btn btn-primary']) }}
</div>
</div>
@@ -1,14 +1,14 @@
<h4>Terms and Conditions</h4>
<textarea class="form-control" style="height: 150px; border: 1px #ccc solid;">
{!! config('app.name') !!} offers this Web site, including all information, software,
{{ config('app.name') }} offers this Web site, including all information, software,
products and services available from this Web site or offered as part of or in conjunction
with this Web site (the “Web site”), to you, the user, conditioned upon your acceptance of
all of the terms, conditions, policies and notices stated here. {!! config('app.name') !!}
all of the terms, conditions, policies and notices stated here. {{ config('app.name') }}
reserves the right to make changes to these Terms and Conditions immediately by posting the
changed Terms and Conditions in this location.
Your continued use of the Web site constitutes your agreement to all such terms, conditions
and notices, and any changes to the Terms and Conditions made by {!! config('app.name') !!}.
and notices, and any changes to the Terms and Conditions made by {{ config('app.name') }}.
The term genericwebsite.com or us or we refers to the owner of the website. The term
you refers to the user or viewer of our website.
@@ -16,11 +16,11 @@ The term genericwebsite.com or us or we refers to the owner of
The use of this website is subject to the following terms of use:
Use the website at your own risk. This website is provided to you “as is, without warranty
of any kind either express or implied. Neither {!! config('app.name') !!} nor its employees,
of any kind either express or implied. Neither {{ config('app.name') }} nor its employees,
agents, third-party information providers, merchants, licensors or the like warrant that the
Web site or its operation will be accurate, reliable, uninterrupted or error-free. No agent
or representative has the authority to create any warranty regarding the Web site on behalf
of {!! config('app.name') !!}. {!! config('app.name') !!} reserves the right to change or
of {{ config('app.name') }}. {{ config('app.name') }} reserves the right to change or
discontinue at any time any aspect or feature of the Web site.
Exclusion of Liability
@@ -61,9 +61,9 @@ in these terms and conditions, you may not copy, distribute, transmit, display,
publish, license, modify, rewrite, create derivative works from, transfer, or sell any material
contained on the Web site without the prior consent of the copyright owner.
None of the material contained on {!! config('app.name') !!} may be reverse-engineered, disassembled,
None of the material contained on {{ config('app.name') }} may be reverse-engineered, disassembled,
decompiled, transcribed, stored in a retrieval system, translated into any language or computer language,
retransmitted in any form or by any means (electronic, mechanical, photo reproduction, recordation or
otherwise), resold or redistributed without the prior written consent of {!! config('app.name') !!}.
otherwise), resold or redistributed without the prior written consent of {{ config('app.name') }}.
Violation of this provision may result in severe civil and criminal penalties.
</textarea>
@@ -11,7 +11,7 @@
<div style="float: left; position: absolute; display:block; top: 0px;font-size: 150px">
<i class="fas fa-plane" style="opacity: .1;"></i>
</div>
<h4 class="">{!! $user->flights !!}</h4>
<h4 class="">{{ $user->flights }}</h4>
<h5 class="description" style="color: white;">{{ str_plural('flight', $user->flights) }}</h5>
</div>
</div>
@@ -22,7 +22,7 @@
<div style="float: left; position: absolute; display:block; top: 0px;font-size: 150px">
<i class="far fa-clock" style="opacity: .1;"></i>
</div>
<h4 class="">{!! \App\Facades\Utils::minutesToTimeString($user->flight_time, false)!!}</h4>
<h4 class="">{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false)}}</h4>
<h5 class="description" style="color: white;">total hours</h5>
</div>
</div>
@@ -35,7 +35,7 @@
<i class="fas fa-map-marker" style="opacity: .1;"></i>
</div>
@if($user->current_airport)
<h4 class="">{!! $user->current_airport->icao !!}</h4>
<h4 class="">{{ $user->current_airport->icao }}</h4>
@else
<h4 class="">-</h4>
@endif
@@ -51,7 +51,7 @@
Your Last Report
</div>
<div class="card-block" style="text-align:center;">
No reports yet. <a href="{!! route('frontend.pireps.create') !!}">File one now.</a>
No reports yet. <a href="{{ route('frontend.pireps.create') }}">File one now.</a>
</div>
</div>
@else
@@ -13,7 +13,7 @@
<button type="button"class="close" data-dismiss="alert">&times;</button>
@endif
{!! session('flash_notification.message') !!}
{{ session('flash_notification.message') }}
</div>
@endif
@endif
@@ -8,7 +8,7 @@
</div>
<div class="modal-body">
<p>{!! $body !!}</p>
<p>{{ $body }}</p>
</div>
<div class="modal-footer">
@@ -12,8 +12,8 @@
@section('scripts')
<script type="text/javascript">
phpvms.map.render_route_map({
route_points: {!! json_encode($map_features['route_points']) !!},
planned_route_line: {!! json_encode($map_features['planned_route_line']); !!},
route_points: {{ json_encode($map_features['route_points']) }},
planned_route_line: {{ json_encode($map_features['planned_route_line']) }},
});
</script>
@endsection
@@ -12,7 +12,7 @@ $(document).ready(function () {
'flight_id': btn.attr('x-id')
},
headers: {
'x-api-key': "{!! Auth::user()->api_key !!}"
'x-api-key': "{{ Auth::user()->api_key }}"
}
};
@@ -2,30 +2,30 @@
<div class="card">
<div class="card-block" style="min-height: 0px">
<div class="form-group text-right">
{!! Form::open(['route' => 'frontend.flights.search', 'method' => 'GET', 'class'=>'form-inline pull-right']) !!}
{{ Form::open(['route' => 'frontend.flights.search', 'method' => 'GET', 'class'=>'form-inline pull-right']) }}
<div>
<p>Flight Number</p>
{!! Form::text('flight_number', null, ['class' => 'form-control']) !!}
{{ Form::text('flight_number', null, ['class' => 'form-control']) }}
</div>
<div>
<p>Departure Airport</p>
{!! Form::select('dep_icao', $airports, null , ['class' => 'form-control']) !!}
{{ Form::select('dep_icao', $airports, null , ['class' => 'form-control']) }}
</div>
<div class="">
<p>Arrival Airport</p>
{!! Form::select('arr_icao', $airports, null , ['class' => 'form-control']) !!}
{{ Form::select('arr_icao', $airports, null , ['class' => 'form-control']) }}
</div>
<br />
<div class="">
{!! Form::submit('find', ['class' => 'btn btn-primary']) !!}&nbsp;
<a href="{!! route('frontend.flights.index') !!}">clear</a>
{{ Form::submit('find', ['class' => 'btn btn-primary']) }}&nbsp;
<a href="{{ route('frontend.flights.index') }}">clear</a>
</div>
<br />
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>
</div>
@@ -4,7 +4,7 @@
@section('content')
<div class="row">
<div class="col-md-12">
<h3 class="description">{!! $flight->ident !!} - {!! $flight->dpt_airport->full_name !!} to {!! $flight->arr_airport->full_name !!}</h3>
<h3 class="description">{{ $flight->ident }} - {{ $flight->dpt_airport->full_name }} to {{ $flight->arr_airport->full_name }}</h3>
</div>
</div>
@@ -13,24 +13,24 @@
<table class="table">
<tr>
<td>Departure</td>
<td>{!! $flight->dpt_airport->icao !!} @ {!! $flight->dpt_time !!}</td>
<td>{{ $flight->dpt_airport->icao }} @ {{ $flight->dpt_time }}</td>
</tr>
<tr>
<td>Arrival</td>
<td>{!! $flight->arr_airport->icao !!} @ {!! $flight->arr_time !!}</td>
<td>{{ $flight->arr_airport->icao }} @ {{ $flight->arr_time }}</td>
</tr>
<tr>
<td>Route Code/Leg:</td>
<td>{!! $flight->route_code ?: '-' !!}/{!! $flight->route_leg ?: '-' !!}</td>
<td>{{ $flight->route_code ?: '-' }}/{{ $flight->route_leg ?: '-' }}</td>
</tr>
<tr>
<td>Alternate Airport</td>
<td>
@if($flight->alt_airport_id)
{!! $flight->alt_airport->full_name !!}
{{ $flight->alt_airport->full_name }}
@else
-
@endif
@@ -39,12 +39,12 @@
<tr>
<td>Route</td>
<td>{!! $flight->route !!}</td>
<td>{{ $flight->route }}</td>
</tr>
<tr>
<td>Notes</td>
<td>{!! $flight->notes !!}</td>
<td>{{ $flight->notes }}</td>
</tr>
</table>
</div>
@@ -4,8 +4,8 @@
<div class="row">
<div class="col-sm-9">
<h5>
<a class="text-c" href="{!! route('frontend.flights.show', [$flight->id]) !!}">
{!! $flight->ident !!}
<a class="text-c" href="{{ route('frontend.flights.show', [$flight->id]) }}">
{{ $flight->ident }}
</a>
</h5>
</div>
@@ -20,7 +20,7 @@
<button class="btn btn-round btn-icon btn-icon-mini
{{ in_array($flight->id, $saved, true) ? 'btn-info':'' }}
save_flight"
x-id="{!! $flight->id !!}"
x-id="{{ $flight->id }}"
x-saved-class="btn-info"
type="button"
title="Add/Remove Bid"
@@ -32,26 +32,26 @@
<div class="row">
<div class="col-sm-5">
<span class="title">DEP&nbsp;</span>
{!! $flight->dpt_airport->icao !!}@if($flight->dpt_time), {!! $flight->dpt_time !!}@endif
{{ $flight->dpt_airport->icao }}@if($flight->dpt_time), {{ $flight->dpt_time }}@endif
<br />
<span class="title">ARR&nbsp;</span>
{!! $flight->arr_airport->icao !!}@if($flight->arr_time), {!! $flight->arr_time !!}@endif
{{ $flight->arr_airport->icao }}@if($flight->arr_time), {{ $flight->arr_time }}@endif
<br />
@if($flight->distance)
<span class="title">DISTANCE&nbsp;</span>
{!! $flight->distance !!} {!! setting('units.distance') !!}
{{ $flight->distance }} {{ setting('units.distance') }}
@endif
<br />
@if($flight->level)
<span class="title">LEVEL&nbsp;</span>
{!! $flight->level !!} {!! setting('units.altitude') !!}
{{ $flight->level }} {{ setting('units.altitude') }}
@endif
</div>
<div class="col-sm-7">
<div class="row">
<div class="col-sm-12">
<span class="title">ROUTE&nbsp;</span>
{!! $flight->route !!}
{{ $flight->route }}
</div>
</div>
</div>
@@ -18,24 +18,24 @@
{{--</div>--}}
<div class="header header-primary text-center blue-bg">
<h3 class="title title-up text-white">
<a href="{!! route('frontend.profile.show', ['id' => $user->id]) !!}" class="text-white">{!! $user->name !!}</a>
<a href="{{ route('frontend.profile.show', ['id' => $user->id]) }}" class="text-white">{{ $user->name }}</a>
</h3>
<div class="photo-container">
<img class="rounded-circle"
src="{!! $user->gravatar(123) !!}">
src="{{ $user->gravatar(123) }}">
</div>
</div>
<div class="content content-center">
<div class="social-description text-center text-white">
<h2 class="description text-white">
@if(filled($user->home_airport))
{!! $user->home_airport->icao !!}
{{ $user->home_airport->icao }}
@endif
</h2>
</div>
</div>
<div class="footer text-center">
<a href="{!! route('frontend.profile.show', ['id' => $user->id]) !!}" class="btn btn-neutral btn-sm">Profile</a>
<a href="{{ route('frontend.profile.show', ['id' => $user->id]) }}" class="btn btn-neutral btn-sm">Profile</a>
</div>
</div>
</div>
+16 -16
View File
@@ -1,7 +1,7 @@
<ul class="navbar-nav">
@if(Auth::check())
<li class="nav-item">
<a class="nav-link" href="{!! url('/dashboard') !!}">
<a class="nav-link" href="{{ url('/dashboard') }}">
<i class="fas fa-tachometer-alt"></i>
<p>Dashboard</p>
</a>
@@ -9,14 +9,14 @@
@endif
<li class="nav-item">
<a class="nav-link" href="{!! url('/livemap') !!}">
<a class="nav-link" href="{{ url('/livemap') }}">
<i class="fas fa-globe"></i>
<p>Live Map</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{!! url('/pilots') !!}">
<a class="nav-link" href="{{ url('/pilots') }}">
<i class="fas fa-users"></i>
<p>Pilots</p>
</a>
@@ -25,22 +25,22 @@
{{-- Show the module links that don't require being logged in --}}
@foreach($moduleSvc->getFrontendLinks($logged_in=false) as &$link)
<li class="nav-item">
<a class="nav-link" href="{!! url($link['url']) !!}">
<i class="{!! $link['icon'] !!}"></i>
<p>{!! $link['title'] !!}</p>
<a class="nav-link" href="{{ url($link['url']) }}">
<i class="{{ $link['icon'] }}"></i>
<p>{{ $link['title'] }}</p>
</a>
</li>
@endforeach
@if(!Auth::check())
<li class="nav-item">
<a class="nav-link" href="{!! url('/login') !!}">
<a class="nav-link" href="{{ url('/login') }}">
<i class="fas fa-sign-in-alt"></i>
<p>Login</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{!! url('/register') !!}">
<a class="nav-link" href="{{ url('/register') }}">
<i class="far fa-id-card"></i>
<p>Register</p>
</a>
@@ -49,19 +49,19 @@
@else
<li class="nav-item">
<a class="nav-link" href="{!! url('/flights') !!}">
<a class="nav-link" href="{{ url('/flights') }}">
<i class="fab fa-avianex"></i>
<p>Flights</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{!! url('/pireps') !!}">
<a class="nav-link" href="{{ url('/pireps') }}">
<i class="fas fa-cloud-upload-alt"></i>
<p>Flight Reports</p>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{!! url('/profile') !!}">
<a class="nav-link" href="{{ url('/profile') }}">
<i class="far fa-user"></i>
<p>Profile</p>
</a>
@@ -69,7 +69,7 @@
@role('admin')
<li class="nav-item">
<a class="nav-link" href="{!! url('/admin') !!}">
<a class="nav-link" href="{{ url('/admin') }}">
<i class="fas fa-circle-notch"></i>
<p>Admin</p>
</a>
@@ -79,15 +79,15 @@
{{-- Show the module links for being logged in --}}
@foreach($moduleSvc->getFrontendLinks($logged_in=true) as &$link)
<li class="nav-item">
<a class="nav-link" href="{!! url($link['url']) !!}">
<i class="{!! $link['icon'] !!}"></i>
<p>{!! $link['title'] !!}</p>
<a class="nav-link" href="{{ url($link['url']) }}">
<i class="{{ $link['icon'] }}"></i>
<p>{{ $link['title'] }}</p>
</a>
</li>
@endforeach
<li class="nav-item">
<a class="nav-link" href="{!! url('/logout') !!}">
<a class="nav-link" href="{{ url('/logout') }}">
<i class="fas fa-sign-out-alt"></i>
<p>Log Out</p>
</a>
@@ -6,11 +6,11 @@
<div class="col-md-12">
<h2 class="description">New Flight Report</h2>
@include('flash::message')
{!! Form::open(['route' => 'frontend.pireps.store']) !!}
{{ Form::open(['route' => 'frontend.pireps.store']) }}
@include("pireps.fields")
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>
@endsection
@@ -5,11 +5,11 @@
<div class="col-md-12">
<h2 class="description">Edit Flight Report</h2>
@include('flash::message')
{!! Form::model($pirep, ['route' => ['frontend.pireps.update', $pirep->id], 'method' => 'patch']) !!}
{{ Form::model($pirep, ['route' => ['frontend.pireps.update', $pirep->id], 'method' => 'patch']) }}
@include("pireps.fields")
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>
@endsection
@@ -9,14 +9,14 @@
<tbody>
@foreach($aircraft->subfleet->fares as $fare)
<tr>
<td style="text-align: right;">{!! $fare->name !!} ({!! $fare->code !!})</td>
<td style="text-align: right;">{{ $fare->name }} ({{ $fare->code }})</td>
<td>
@if($read_only)
<p>{!! $pirep->{'fare_'.$fare->id} !!}</p>
{!! Form::hidden('fare_'.$fare->id) !!}
<p>{{ $pirep->{'fare_'.$fare->id} }}</p>
{{ Form::hidden('fare_'.$fare->id) }}
@else
<div class="input-group form-group">
{!! Form::number('fare_'.$fare->id, null, ['class' => 'form-control', 'min' => 0]) !!}
{{ Form::number('fare_'.$fare->id, null, ['class' => 'form-control', 'min' => 0]) }}
</div>
@endif
</td>
@@ -28,13 +28,13 @@ flight reports that have been filed. You've been warned!
<td>Airline</td>
<td>
@if($read_only)
<p>{!! $pirep->airline->name !!}</p>
{!! Form::hidden('airline_id') !!}
<p>{{ $pirep->airline->name }}</p>
{{ Form::hidden('airline_id') }}
@else
<div class="input-group form-group">
{!! Form::select('airline_id', $airline_list, null, [
{{ Form::select('airline_id', $airline_list, null, [
'class' => 'custom-select select2',
'readonly' => $read_only]) !!}
'readonly' => $read_only]) }}
</div>
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
@endif
@@ -45,27 +45,27 @@ flight reports that have been filed. You've been warned!
<td>Flight Number/Code/Leg</td>
<td>
@if($read_only)
<p>{!! $pirep->ident !!}
{!! Form::hidden('flight_number') !!}
{!! Form::hidden('flight_code') !!}
{!! Form::hidden('flight_leg') !!}
<p>{{ $pirep->ident }}
{{ Form::hidden('flight_number') }}
{{ Form::hidden('flight_code') }}
{{ Form::hidden('flight_leg') }}
</p>
@else
<div class="input-group form-group" style="max-width: 400px;">
{!! Form::text('flight_number', null, [
{{ Form::text('flight_number', null, [
'placeholder' => 'Flight Number',
'class' => 'form-control',
'readonly' => $read_only]) !!}
'readonly' => $read_only]) }}
{!! Form::text('route_code', null, [
{{ Form::text('route_code', null, [
'placeholder' => 'Code (optional)',
'class' => 'form-control',
'readonly' => $read_only]) !!}
'readonly' => $read_only]) }}
{!! Form::text('route_leg', null, [
{{ Form::text('route_leg', null, [
'placeholder' => 'Leg (optional)',
'class' => 'form-control',
'readonly' => $read_only]) !!}
'readonly' => $read_only]) }}
</div>
<p class="text-danger">{{ $errors->first('flight_number') }}</p>
<p class="text-danger">{{ $errors->first('route_code') }}</p>
@@ -78,16 +78,16 @@ flight reports that have been filed. You've been warned!
<td>Aircraft</td>
<td>
@if($read_only)
<p>{!! $pirep->aircraft->name !!}</p>
{!! Form::hidden('aircraft_id') !!}
<p>{{ $pirep->aircraft->name }}</p>
{{ Form::hidden('aircraft_id') }}
@else
<div class="input-group form-group">
{{-- You probably don't want to change this ID if you want the fare select to work --}}
{!! Form::select('aircraft_id', $aircraft_list, null, [
{{ Form::select('aircraft_id', $aircraft_list, null, [
'id' => 'aircraft_select',
'class' => 'custom-select select2',
'readonly' => $read_only
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first('aircraft_id') }}</p>
@endif
@@ -98,14 +98,14 @@ flight reports that have been filed. You've been warned!
<td>Origin Airport</td>
<td>
@if($read_only)
<p>{!! $pirep->dpt_airport->id !!} - {!! $pirep->dpt_airport->name !!}</p>
{!! Form::hidden('dpt_airport_id') !!}
<p>{{ $pirep->dpt_airport->id }} - {{ $pirep->dpt_airport->name }}</p>
{{ Form::hidden('dpt_airport_id') }}
@else
<div class="input-group form-group">
{!! Form::select('dpt_airport_id', $airport_list, null, [
{{ Form::select('dpt_airport_id', $airport_list, null, [
'class' => 'custom-select select2',
'readonly' => $read_only
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first('dpt_airport_id') }}</p>
@endif
@@ -116,15 +116,15 @@ flight reports that have been filed. You've been warned!
<td>Arrival Airport</td>
<td>
@if($read_only)
<p>{!! $pirep->arr_airport->id !!}
- {!! $pirep->arr_airport->name !!}</p>
{!! Form::hidden('arr_airport_id') !!}
<p>{{ $pirep->arr_airport->id }}
- {{ $pirep->arr_airport->name }}</p>
{{ Form::hidden('arr_airport_id') }}
@else
<div class="input-group form-group">
{!! Form::select('arr_airport_id', $airport_list, null, [
{{ Form::select('arr_airport_id', $airport_list, null, [
'class' => 'custom-select select2',
'readonly' => $read_only
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first('arr_airport_id') }}</p>
@endif
@@ -136,25 +136,25 @@ flight reports that have been filed. You've been warned!
<td>
@if($read_only)
<p>
{!! $pirep->hours !!} hours, {!! $pirep->minutes !!} minutes
{!! Form::hidden('hours') !!}
{!! Form::hidden('minutes') !!}
{{ $pirep->hours }} hours, {{ $pirep->minutes }} minutes
{{ Form::hidden('hours') }}
{{ Form::hidden('minutes') }}
</p>
@else
<div class="input-group" style="max-width: 200px;">
{!! Form::number('hours', null, [
{{ Form::number('hours', null, [
'class' => 'form-control',
'placeholder' => 'hours',
'min' => '0',
'readonly' => $read_only
]) !!}
]) }}
{!! Form::number('minutes', null, [
{{ Form::number('minutes', null, [
'class' => 'form-control',
'placeholder' => 'minutes',
'min' => 0,
'readonly' => $read_only
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first('hours') }}</p>
<p class="text-danger">{{ $errors->first('minutes') }}</p>
@@ -168,16 +168,16 @@ flight reports that have been filed. You've been warned!
@foreach($pirep_fields as $field)
<tr>
<td>
{!! $field->name !!}
{{ $field->name }}
@if($field->required === true)
<span class="text-danger">*</span>
@endif
</td>
<td>
<div class="input-group form-group">
{!! Form::text($field->slug, null, [
{{ Form::text($field->slug, null, [
'class' => 'form-control'
]) !!}
]) }}
</div>
<p class="text-danger">{{ $errors->first($field->slug) }}</p>
</td>
@@ -188,7 +188,7 @@ flight reports that have been filed. You've been warned!
<td class="align-text-top">Route</td>
<td>
<div class="input-group form-group">
{!! Form::textarea('route', null, ['class' => 'form-control', 'placeholder' => 'Route']) !!}
{{ Form::textarea('route', null, ['class' => 'form-control', 'placeholder' => 'Route']) }}
</div>
<p class="text-danger">{{ $errors->first('route') }}</p>
</td>
@@ -198,7 +198,7 @@ flight reports that have been filed. You've been warned!
<td class="align-text-top"><p class="">Notes</p></td>
<td>
<div class="input-group form-group">
{!! Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => 'Notes']) !!}
{{ Form::textarea('notes', null, ['class' => 'form-control', 'placeholder' => 'Notes']) }}
</div>
<p class="text-danger">{{ $errors->first('notes') }}</p>
</td>
@@ -218,7 +218,7 @@ flight reports that have been filed. You've been warned!
<div class="col-sm-12">
<div class="float-right">
<div class="form-group">
{!! Form::submit('Save PIREP', ['class' => 'btn btn-primary']) !!}
{{ Form::submit('Save PIREP', ['class' => 'btn btn-primary']) }}
</div>
</div>
</div>
@@ -7,7 +7,7 @@
<div style="float:right;">
<a class="btn btn-primary pull-right btn-lg"
style="margin-top: -10px;margin-bottom: 5px"
href="{!! route('frontend.pireps.create') !!}">File New PIREP</a>
href="{{ route('frontend.pireps.create') }}">File New PIREP</a>
</div>
<h2 class="description">pilot reports</h2>
@include('flash::message')
@@ -12,10 +12,10 @@
@section('scripts')
<script type="text/javascript">
phpvms.map.render_route_map({
route_points: {!! json_encode($map_features['planned_rte_points']) !!},
planned_route_line: {!! json_encode($map_features['planned_rte_line']); !!},
actual_route_line: {!! json_encode($map_features['actual_route_line']); !!},
actual_route_points: {!! json_encode($map_features['actual_route_points']); !!},
route_points: {{ json_encode($map_features['planned_rte_points']) }},
planned_route_line: {{ json_encode($map_features['planned_rte_line']) }},
actual_route_line: {{ json_encode($map_features['actual_route_line']) }},
actual_route_points: {{ json_encode($map_features['actual_route_points']) }},
});
</script>
@endsection
@@ -3,8 +3,8 @@
<div class="row">
<div class="col-sm-2 text-center">
<h5>
<a class="text-c" href="{!! route('frontend.pireps.show', [$pirep->id]) !!}">
{!! $pirep->ident !!}
<a class="text-c" href="{{ route('frontend.pireps.show', [$pirep->id]) }}">
{{ $pirep->ident }}
</a>
</h5>
<div>
@@ -17,7 +17,7 @@
@else
<div class="badge badge-info">
@endif
{!! PirepState::label($pirep->state) !!}</div>
{{ PirepState::label($pirep->state) }}</div>
</div>
</div>
<div class="col-sm-10">
@@ -26,36 +26,36 @@
<table width="100%">
<tr>
<td width="20%" nowrap><span class="title">DEP&nbsp;</span></td>
<td>{!! $pirep->dpt_airport_id !!}</td>
<td>{{ $pirep->dpt_airport_id }}</td>
</tr>
<tr>
<td nowrap><span class="title">ARR&nbsp;</span></td>
<td>{!! $pirep->arr_airport_id !!}&nbsp;</td>
<td>{{ $pirep->arr_airport_id }}&nbsp;</td>
</tr>
<tr>
<td nowrap><span class="title">Flight Time&nbsp;</span></td>
<td>{!! Utils::minutesToTimeString($pirep->flight_time) !!}</td>
<td>{{ Utils::minutesToTimeString($pirep->flight_time) }}</td>
</tr>
<tr>
<td nowrap><span class="title">Aircraft&nbsp;</span></td>
<td>{!! $pirep->aircraft->name !!}
({!! $pirep->aircraft->registration !!})</td>
<td>{{ $pirep->aircraft->name }}
({{ $pirep->aircraft->registration }})</td>
</tr>
@if($pirep->level)
<tr>
<td nowrap><span class="title">Flight Level&nbsp;</span></td>
<td>{!! $pirep->level !!}</td>
<td>{{ $pirep->level }}</td>
</tr>
@endif
<tr>
<td nowrap><span class="title">Filed On:&nbsp;</span></td>
<td>{!! show_datetime($pirep->created_at) !!}</td>
<td>{{ show_datetime($pirep->created_at) }}</td>
</tr>
</table>
</div>
<div class="col-sm-6">
<p style="text-align: right;">
<a href="{!! route('frontend.pireps.edit', ['id'=>$pirep->id]) !!}">edit</a>
<a href="{{ route('frontend.pireps.edit', ['id'=>$pirep->id]) }}">edit</a>
</p>
</div>
</div>
@@ -9,10 +9,10 @@
console.log('aircraft select change: ', aircraft_id);
$.ajax({
url: "{!! url('/pireps/fares') !!}?aircraft_id=" + aircraft_id,
url: "{{ url('/pireps/fares') }}?aircraft_id=" + aircraft_id,
type: 'GET',
headers: {
'x-api-key': '{!! Auth::user()->api_key !!}'
'x-api-key': '{{ Auth::user()->api_key }}'
},
success: (data) => {
console.log('returned new fares', data);
@@ -4,7 +4,7 @@
@section('content')
<div class="row">
<div class="col-md-12">
<h2 class="description">{!! $pirep->ident !!}</h2>
<h2 class="description">{{ $pirep->ident }}</h2>
</div>
</div>
@@ -24,47 +24,47 @@
<div class="badge badge-info">
@endif
{!! PirepState::label($pirep->state) !!}</div>
{{ PirepState::label($pirep->state) }}</div>
<span class="description" style="padding-left: 20px;">
source: {!! PirepSource::label($pirep->source) !!}
source: {{ PirepSource::label($pirep->source) }}
</span>
</td>
</tr>
<tr>
<td>Departure/Arrival</td>
<td>
{!! $pirep->dpt_airport->icao !!} - {!! $pirep->dpt_airport->name !!}
{{ $pirep->dpt_airport->icao }} - {{ $pirep->dpt_airport->name }}
<span class="description">to</span>
{!! $pirep->arr_airport->icao !!} - {!! $pirep->arr_airport->name !!}
{{ $pirep->arr_airport->icao }} - {{ $pirep->arr_airport->name }}
</td>
</tr>
<tr>
<td>Flight Time</td>
<td>
{!! Utils::minutesToTimeString($pirep->flight_time) !!}
{{ Utils::minutesToTimeString($pirep->flight_time) }}
</td>
</tr>
<tr>
<td>Filed Route</td>
<td>
{!! $pirep->route !!}
{{ $pirep->route }}
</td>
</tr>
<tr>
<td>Notes</td>
<td>
{!! $pirep->notes !!}
{{ $pirep->notes }}
</td>
</tr>
<tr>
<td>Filed On</td>
<td>
{!! show_datetime($pirep->created_at) !!}
{{ show_datetime($pirep->created_at) }}
</td>
</tr>
@@ -88,8 +88,8 @@
<tbody>
@foreach($pirep->fields as $field)
<tr>
<td>{!! $field->name !!}</td>
<td>{!! $field->value !!}</td>
<td>{{ $field->name }}</td>
<td>{{ $field->value }}</td>
</tr>
@endforeach
</tbody>
@@ -114,8 +114,8 @@
<tbody>
@foreach($pirep->fares as $fare)
<tr>
<td>{!! $fare->fare->name !!} ({!! $fare->fare->code !!})</td>
<td>{!! $fare->count !!}</td>
<td>{{ $fare->fare->name }} ({{ $fare->fare->code }})</td>
<td>{{ $fare->count }}</td>
</tr>
@endforeach
</tbody>
@@ -137,8 +137,8 @@
<tbody>
@foreach($pirep->acars_logs as $log)
<tr>
<td nowrap="true">{!! show_datetime($log->created_at) !!}</td>
<td>{!! $log->log !!}</td>
<td nowrap="true">{{ show_datetime($log->created_at) }}</td>
<td>{{ $log->log }}</td>
</tr>
@endforeach
</tbody>
@@ -6,9 +6,9 @@
<div class="col-md-12">
<h2 class="description">edit your profile</h2>
@include('flash::message')
{!! Form::model($user, ['route' => ['frontend.profile.update', $user->id], 'method' => 'patch']) !!}
{{ Form::model($user, ['route' => ['frontend.profile.update', $user->id], 'method' => 'patch']) }}
@include("profile.fields")
{!! Form::close() !!}
{{ Form::close() }}
</div>
</div>
@endsection
@@ -5,7 +5,7 @@
<td>Name</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('name') ? ' has-danger' : '' }}">
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{{ Form::text('name', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('name'))
<p class="text-danger">{{ $errors->first('name') }}</p>
@@ -17,7 +17,7 @@
<td>Email</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('email') ? ' has-danger' : '' }}">
{!! Form::text('email', null, ['class' => 'form-control']) !!}
{{ Form::text('email', null, ['class' => 'form-control']) }}
</div>
@if ($errors->has('email'))
<p class="text-danger">{{ $errors->first('email') }}</p>
@@ -29,7 +29,7 @@
<td>Airline</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('airline') ? ' has-danger' : '' }}">
{!! Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) !!}
{{ Form::select('airline_id', $airlines, null , ['class' => 'form-control select2']) }}
</div>
@if ($errors->has('airline_id'))
<p class="text-danger">{{ $errors->first('airline_id') }}</p>
@@ -41,7 +41,7 @@
<td>Home Airport</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('home_airport_id') ? ' has-danger' : '' }}">
{!! Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) !!}
{{ Form::select('home_airport_id', $airports, null , ['class' => 'form-control select2']) }}
</div>
@if ($errors->has('home_airport_id'))
<p class="text-danger">{{ $errors->first('home_airport_id') }}</p>
@@ -53,7 +53,7 @@
<td>Country</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('country') ? ' has-danger' : '' }}">
{!! Form::select('country', $countries, null, ['class' => 'form-control select2' ]); !!}
{{ Form::select('country', $countries, null, ['class' => 'form-control select2' ]) }}
</div>
@if ($errors->has('country'))
<p class="text-danger">{{ $errors->first('country') }}</p>
@@ -65,7 +65,7 @@
<td>Timezone</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('timezone') ? ' has-danger' : '' }}">
{!! Form::select('timezone', $timezones, null, ['class' => 'form-control select2' ]); !!}
{{ Form::select('timezone', $timezones, null, ['class' => 'form-control select2' ]) }}
</div>
@if ($errors->has('timezone'))
<p class="text-danger">{{ $errors->first('timezone') }}</p>
@@ -77,7 +77,7 @@
<td>Change Password</td>
<td>
<div class="input-group form-group-no-border{{ $errors->has('password') ? ' has-danger' : '' }}">
{!! Form::password('password', ['class' => 'form-control']) !!}
{{ Form::password('password', ['class' => 'form-control']) }}
</div>
@if ($errors->has('password'))
<p class="text-danger">{{ $errors->first('password') }}</p>
@@ -85,7 +85,7 @@
<p>Confirm Password:</p>
<div class="input-group form-group-no-border{{ $errors->has('password_confirmation') ? ' has-danger' : '' }}">
{!! Form::password('password_confirmation', ['class' => 'form-control']) !!}
{{ Form::password('password_confirmation', ['class' => 'form-control']) }}
</div>
@if ($errors->has('password_confirmation'))
<p class="text-danger">{{ $errors->first('password_confirmation') }}</p>
@@ -96,7 +96,7 @@
</table>
<div style="width: 100%; text-align: right; padding-top: 20px;">
{!! Form::submit('Update Profile', ['class' => 'btn btn-primary']) !!}
{{ Form::submit('Update Profile', ['class' => 'btn btn-primary']) }}
</div>
</div>
</div>
@@ -5,38 +5,38 @@
<div class="row profile-page content-center text-color-dark-beige">
<div class="col-md-4" style="text-align:center;">
<div class="photo-container">
<img src="{!! $user->gravatar(512) !!}" style="width: 123px;">
<img src="{{ $user->gravatar(512) }}" style="width: 123px;">
</div>
<h3 class="title">{!! $user->name !!}</h3>
<h6><span class="flag-icon flag-icon-{!! $user->country !!}"></span></h6>
<h6>{!! $user->pilot_id !!}</h6>
<h6>{!! $user->rank->name !!}</h6>
<h3 class="title">{{ $user->name }}</h3>
<h6><span class="flag-icon flag-icon-{{ $user->country }}"></span></h6>
<h6>{{ $user->pilot_id }}</h6>
<h6>{{ $user->rank->name }}</h6>
<p class="description" style="color: #9A9A9A;">
{!! $user->airline->name !!}
{{ $user->airline->name }}
</p>
</div>
<div class="col-md-8 content-center">
<div class="content">
<div class="social-description">
<h2>{!! $user->flights!!}</h2>
<h2>{{ $user->flights}}</h2>
<p>Flights</p>
</div>
<div class="social-description">
<h2>{!! \App\Facades\Utils::minutesToTimeString($user->flight_time, false) !!}</h2>
<h2>{{ \App\Facades\Utils::minutesToTimeString($user->flight_time, false) }}</h2>
<p>Flight Hours</p>
</div>
@if($user->home_airport)
<div class="social-description">
<h2>{!! $user->home_airport->icao !!}</h2>
<h2>{{ $user->home_airport->icao }}</h2>
<p>Home Airport</p>
</div>
@endif
@if($user->current_airport)
<div class="social-description">
<h2>{!! $user->current_airport->icao !!}</h2>
<h2>{{ $user->current_airport->icao }}</h2>
<p>Current Airport</p>
</div>
@endif
@@ -53,10 +53,10 @@
<div class="row">
<div class="col-sm-12">
<div class="text-right">
<a href="{!! route('frontend.profile.regen_apikey') !!}" class="btn btn-warning"
<a href="{{ route('frontend.profile.regen_apikey') }}" class="btn btn-warning"
onclick="return confirm('Are you sure? This will reset your API key.')">new api key</a>
&nbsp;
<a href="{!! route('frontend.profile.edit', ['id' => $user->id]) !!}"
<a href="{{ route('frontend.profile.edit', ['id' => $user->id]) }}"
class="btn btn-primary">edit</a>
</div>
@@ -64,15 +64,15 @@
<table class="table table-full-width">
<tr>
<td>Email</td>
<td>{!! $user->email !!}</td>
<td>{{ $user->email }}</td>
</tr>
<tr>
<td>API Key&nbsp;&nbsp;<span class="description">don't share this!</span></td>
<td>{!! $user->api_key !!}</td>
<td>{{ $user->api_key }}</td>
</tr>
<tr>
<td>Timezone</td>
<td>{!! $user->timezone !!}</td>
<td>{{ $user->timezone }}</td>
</tr>
</table>
</div>
@@ -14,30 +14,30 @@
<td style="width: 80px;">
<div class="photo-container">
<img class="rounded-circle"
src="{!! $user->gravatar(256) !!}&s=256"/>
src="{{ $user->gravatar(256) }}&s=256"/>
</div>
</td>
<td>
<a href="{!! route('frontend.profile.show.public', ['id' => $user->id]) !!}">
{!! $user->name !!}
<a href="{{ route('frontend.profile.show.public', ['id' => $user->id]) }}">
{{ $user->name }}
</a>
</td>
<td align="center">
@if(filled($user->country))
<span class="flag-icon flag-icon-{!! $user->country !!}"
title="{!! $country->alpha2($user->country)['name'] !!}"></span>
<span class="flag-icon flag-icon-{{ $user->country }}"
title="{{ $country->alpha2($user->country)['name'] }}"></span>
@endif
</td>
<td class="text-center">{!! $user->airline->icao !!}</td>
<td class="text-center">{{ $user->airline->icao }}</td>
<td class="text-center">
@if($user->current_airport)
{!! $user->curr_airport_id !!}
{{ $user->curr_airport_id }}
@else
-
@endif
</td>
<td align="center">{!! $user->flights !!}</td>
<td align="center">{!! \App\Facades\Utils::minutesToTimeString($user->flight_time) !!}</td>
<td align="center">{{ $user->flights }}</td>
<td align="center">{{ \App\Facades\Utils::minutesToTimeString($user->flight_time) }}</td>
</tr>
@endforeach
</tbody>
@@ -10,11 +10,11 @@
@endif
@foreach($news as $item)
<h4 style="margin-top: 0px;">{!! $item->subject !!}</h4>
<p class="category">{!! $item->user->name !!}
- {!! show_datetime($item->created_at) !!}</p>
<h4 style="margin-top: 0px;">{{ $item->subject }}</h4>
<p class="category">{{ $item->user->name }}
- {{ show_datetime($item->created_at) }}</p>
{!! $item->body !!}
{{ $item->body }}
@endforeach
</div>
</div>
@@ -9,9 +9,9 @@
@foreach($users as $u)
<tr>
<td style="padding-right: 10px;">
<span class="title">{!! $u->pilot_id !!}</span>
<span class="title">{{ $u->pilot_id }}</span>
</td>
<td>{!! $u->name !!}</td>
<td>{{ $u->name }}</td>
</tr>
@endforeach
</table>
@@ -9,12 +9,12 @@
@foreach($pireps as $p)
<tr>
<td style="padding-right: 10px;">
<span class="title">{!! $p->airline->code !!}</span>
<span class="title">{{ $p->airline->code }}</span>
</td>
<td>
{!! $p->dpt_airport_id !!}-
{!! $p->arr_airport_id !!}&nbsp;
{!! $p->aircraft->name !!}
{{ $p->dpt_airport_id }}-
{{ $p->arr_airport_id }}&nbsp;
{{ $p->aircraft->name }}
</td>
</tr>
@endforeach
@@ -2,7 +2,7 @@
<div class="col-md-12">
<h3 class="description">flight map</h3>
<div class="box-body">
<div id="map" style="width: {!! $config['width'] !!}; height: {!! $config['height'] !!}"></div>
<div id="map" style="width: {{ $config['width'] }}; height: {{ $config['height'] }}"></div>
</div>
</div>
</div>
@@ -18,11 +18,11 @@
<table class="table">
@foreach($pireps as $pirep)
<tr>
<td>{!! $pirep->ident !!}</td>
<td>{!! $pirep->dpt_airport_id !!}</td>
<td>{!! $pirep->arr_airport_id !!}</td>
<td>{{ $pirep->ident }}</td>
<td>{{ $pirep->dpt_airport_id }}</td>
<td>{{ $pirep->arr_airport_id }}</td>
<td>
{!! PirepStatus::label($pirep->status); !!}
{{ PirepStatus::label($pirep->status) }}
</td>
</tr>
@endforeach
@@ -33,9 +33,9 @@
@section('scripts')
<script type="text/javascript">
phpvms.render_live_map({
'update_uri': '{!! url('/api/acars') !!}',
'pirep_uri': '{!! url('/api/pireps/{id}/acars/geojson') !!}',
'aircraft_icon': '{!! public_asset('/assets/img/acars/aircraft.png') !!}',
'update_uri': '{{ url('/api/acars') }}',
'pirep_uri': '{{ url('/api/pireps/{id}/acars/geojson') }}',
'aircraft_icon': '{{ public_asset('/assets/img/acars/aircraft.png') }}',
});
</script>
@endsection