2017-06-29 08:54:05 +08:00
|
|
|
@extends('admin.app')
|
2017-12-20 23:05:56 +08:00
|
|
|
@section('title', 'Edit ' . $pirep->ident )
|
2018-02-07 02:58:48 +08:00
|
|
|
|
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">
|
2018-02-07 02:58:48 +08:00
|
|
|
|
|
|
|
{{-- 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;">
|
2018-03-13 06:58:12 +08:00
|
|
|
Filed By: <a href="{{ route('admin.users.edit', [$pirep->user_id]) }}" target="_blank">
|
2019-07-17 01:54:14 +08:00
|
|
|
{{ $pirep->user->ident }} {{ $pirep->user->name }}
|
2018-02-07 02:58:48 +08:00
|
|
|
</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>
|
|
|
|
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::model($pirep, ['route' => ['admin.pireps.update', $pirep->id], 'method' => 'patch']) }}
|
2017-12-04 05:29:34 +08:00
|
|
|
@include('admin.pireps.fields')
|
2018-03-13 06:58:12 +08:00
|
|
|
{{ Form::close() }}
|
2017-06-29 08:54:05 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-12-04 05:29:34 +08:00
|
|
|
|
2018-01-12 05:07:11 +08:00
|
|
|
<div class="card border-blue-bottom">
|
|
|
|
<div class="content">
|
|
|
|
<h4>comments</h4>
|
|
|
|
@include('admin.pireps.comments')
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-02-22 05:24:46 +08:00
|
|
|
|
|
|
|
<div class="card border-blue-bottom">
|
|
|
|
<div class="content">
|
|
|
|
<h4>flight log</h4>
|
|
|
|
@include('admin.pireps.flight_log')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-03-03 06:09:48 +08:00
|
|
|
<div class="card border-blue-bottom">
|
|
|
|
<div class="content">
|
2018-03-06 03:07:10 +08:00
|
|
|
<div class="pull-right">
|
|
|
|
<button id="recalculate-finances"
|
|
|
|
class="btn btn-success"
|
2018-03-13 06:58:12 +08:00
|
|
|
data-pirep-id="{{ $pirep->id }}">Recalcuate Finances</button>
|
2018-03-06 03:07:10 +08:00
|
|
|
</div>
|
2018-03-03 06:09:48 +08:00
|
|
|
<h4>transactions</h4>
|
|
|
|
@include('admin.pireps.transactions')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-12-04 05:29:34 +08:00
|
|
|
</div>
|
2017-06-29 08:54:05 +08:00
|
|
|
@endsection
|
2018-02-07 02:58:48 +08:00
|
|
|
|
2018-01-04 05:27:56 +08:00
|
|
|
@include('admin.pireps.scripts')
|