styling cleanup

This commit is contained in:
Nabeel Shahzad 2017-08-10 00:08:38 -05:00
parent ee016cf284
commit eb3fa9b4cb
6 changed files with 26 additions and 10 deletions

View File

@ -10,11 +10,6 @@ use App\Models\Pirep;
class PirepController extends AppBaseController class PirepController extends AppBaseController
{ {
/**
* Show the application dashboard.
*
* @return \Illuminate\Http\Response
*/
public function index() public function index()
{ {
$user = Auth::user(); $user = Auth::user();
@ -30,6 +25,19 @@ class PirepController extends AppBaseController
public function create() public function create()
{ {
return view('pireps.create'); return $this->view('pireps.create');
}
public function store()
{
}
public function show($id)
{
$pirep = Pirep::where('id', $id);
return $this->view('pireps.show', [
'pirep' => $pirep,
]);
} }
} }

View File

@ -0,0 +1,7 @@
/**
*
*/
.border-blue-bottom {
border-bottom: 3px solid #067ec1;
}

View File

@ -16,6 +16,7 @@
<!-- CSS Files --> <!-- CSS Files -->
<link href="/assets/frontend/css/bootstrap.min.css" rel="stylesheet"/> <link href="/assets/frontend/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/assets/frontend/css/now-ui-kit.css" rel="stylesheet"/> <link href="/assets/frontend/css/now-ui-kit.css" rel="stylesheet"/>
<link href="/assets/frontend/css/styles.css" rel="stylesheet"/>
@yield('css') @yield('css')

View File

@ -1,5 +1,5 @@
@foreach($flights as $flight) @foreach($flights as $flight)
<div class="card"> <div class="card border-blue-bottom">
<div class="card-block" style="min-height: 0px"> <div class="card-block" style="min-height: 0px">
<div class="row"> <div class="row">
<div class="col-sm-3"> <div class="col-sm-3">

View File

@ -4,7 +4,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<div style="float:right;"> <div style="float:right;">
<a class="btn btn-primary pull-right" <a class="btn btn-primary pull-right btn-lg"
style="margin-top: -10px;margin-bottom: 5px" 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> </div>

View File

@ -1,8 +1,8 @@
@foreach($pireps as $pirep) @foreach($pireps as $pirep)
<div class="card"> <div class="card border-blue-bottom">
<div class="card-block" style="min-height: 0px"> <div class="card-block" style="min-height: 0px">
<div class="row"> <div class="row">
<div class="col-sm-2"> <div class="col-sm-2 text-center">
<h5> <h5>
<a class="text-c" href="{!! route('frontend.flights.show', [$pirep->flight_id]) !!}"> <a class="text-c" href="{!! route('frontend.flights.show', [$pirep->flight_id]) !!}">
{!! $pirep->airline->code !!}{!! $pirep->flight->flight_number !!} {!! $pirep->airline->code !!}{!! $pirep->flight->flight_number !!}