phpvms/resources/views/admin/pireps/edit.blade.php

48 lines
1.5 KiB
PHP
Raw Normal View History

2017-06-29 08:54:05 +08:00
@extends('admin.app')
@section('title', 'Edit ' . $pirep->ident )
2017-06-29 08:54:05 +08:00
@section('content')
2017-12-04 05:29:34 +08:00
<div class="content">
<div class="card border-blue-bottom">
<div class="content">
{{-- pulled out to here otherwise the form::close() within a form undo it --}}
<div class="row">
<div class="col-md-8">
<h5 style="margin-top: 0px;">
Filed By: <a href="{!! route('admin.users.edit', [$pirep->user_id]) !!}" target="_blank">
{!! $pirep->user->pilot_id !!} {!! $pirep->user->name !!}
</a>
</h5>
</div>
<div class="col-md-4">
<div class="pull-right">
@include('admin.pireps.actions', ['pirep' => $pirep, 'on_edit_page' => true])
</div>
</div>
</div>
2017-12-04 05:29:34 +08:00
{!! Form::model($pirep, ['route' => ['admin.pireps.update', $pirep->id], 'method' => 'patch']) !!}
@include('admin.pireps.fields')
{!! Form::close() !!}
2017-06-29 08:54:05 +08:00
</div>
</div>
2017-12-04 05:29:34 +08:00
<div class="card border-blue-bottom">
<div class="content">
<h4>field values</h4>
2017-12-04 05:29:34 +08:00
@include('admin.pireps.field_values')
</div>
</div>
<div class="card border-blue-bottom">
<div class="content">
<h4>comments</h4>
@include('admin.pireps.comments')
</div>
</div>
2017-12-04 05:29:34 +08:00
</div>
2017-06-29 08:54:05 +08:00
@endsection
2018-01-04 05:27:56 +08:00
@include('admin.pireps.scripts')