Format all blade templates to 2 spaces #530 (#531)

This commit is contained in:
Nabeel S
2020-02-01 13:05:56 -05:00
committed by GitHub
parent 06b47d97e0
commit 59d09c0cec
254 changed files with 7123 additions and 7006 deletions

View File

@@ -1,11 +1,11 @@
@extends('admin.app')
@section('title', 'Add Fare')
@section('content')
<div class="card border-blue-bottom">
<div class="content">
{{ Form::open(['route' => 'admin.fares.store']) }}
@include('admin.fares.fields')
{{ Form::close() }}
</div>
<div class="card border-blue-bottom">
<div class="content">
{{ Form::open(['route' => 'admin.fares.store']) }}
@include('admin.fares.fields')
{{ Form::close() }}
</div>
</div>
@endsection

View File

@@ -1,11 +1,11 @@
@extends('admin.app')
@section('title', "Edit \"$fare->name\"")
@section('content')
<div class="card border-blue-bottom">
<div class="card border-blue-bottom">
<div class="content">
{{ Form::model($fare, ['route' => ['admin.fares.update', $fare->id], 'method' => 'patch']) }}
@include('admin.fares.fields')
{{ Form::close() }}
{{ Form::model($fare, ['route' => ['admin.fares.update', $fare->id], 'method' => 'patch']) }}
@include('admin.fares.fields')
{{ Form::close() }}
</div>
</div>
</div>
@endsection

View File

@@ -1,79 +1,79 @@
<div class="row">
<div class="col-md-12">
<div class="callout callout-success">
When a fare is assigned to a subfleet, the price, cost and capacity can be overridden,
so you can create default values that will apply to most of your subfleets, and change
them where they will differ.
</div>
<br />
<div class="col-md-12">
<div class="callout callout-success">
When a fare is assigned to a subfleet, the price, cost and capacity can be overridden,
so you can create default values that will apply to most of your subfleets, and change
them where they will differ.
</div>
<br/>
</div>
</div>
<div class="row">
<div class="form-group col-sm-6">
<div class="form-group col-sm-6">
{{ Form::label('code', 'Code:') }}&nbsp;<span class="required">*</span>
@component('admin.components.info')
How this fare class will show up on a ticket
How this fare class will show up on a ticket
@endcomponent
{{ Form::text('code', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('code') }}</p>
</div>
</div>
<div class="form-group col-sm-6">
<div class="form-group col-sm-6">
{{ Form::label('name', 'Name:') }}&nbsp;<span class="required">*</span>
@component('admin.components.info')
The fare class name, E.g, "Economy" or "First"
The fare class name, E.g, "Economy" or "First"
@endcomponent
{{ Form::text('name', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('name') }}</p>
</div>
</div>
<div class="form-group col-sm-6">
<div class="form-group col-sm-6">
{{ Form::label('price', 'Price:') }}
@component('admin.components.info')
This is the price of a ticket for a passenger
This is the price of a ticket for a passenger
@endcomponent
{{ Form::text('price', null, ['class' => 'form-control', 'placeholder' => 0]) }}
<p class="text-danger">{{ $errors->first('price') }}</p>
</div>
</div>
<div class="form-group col-sm-6">
<div class="form-group col-sm-6">
{{ Form::label('cost', 'Cost:') }}
@component('admin.components.info')
The operating cost
The operating cost
@endcomponent
{{ Form::number('cost', null, ['class' => 'form-control', 'placeholder' => 0, 'step' => '0.01']) }}
<p class="text-danger">{{ $errors->first('cost') }}</p>
</div>
</div>
<div class="form-group col-sm-6">
<div class="form-group col-sm-6">
{{ Form::label('capacity', 'Capacity:') }}
@component('admin.components.info')
The number of seats available in this class.
The number of seats available in this class.
@endcomponent
{{ Form::number('capacity', null, ['class' => 'form-control', 'min' => 0]) }}
<p class="text-danger">{{ $errors->first('capacity') }}</p>
</div>
</div>
<div class="form-group col-sm-6">
<div class="form-group col-sm-6">
{{ Form::label('notes', 'Notes:') }}
{{ Form::text('notes', null, ['class' => 'form-control']) }}
<p class="text-danger">{{ $errors->first('notes') }}</p>
</div>
</div>
<!-- Active Field -->
<div class="form-group col-sm-12">
<!-- Active Field -->
<div class="form-group col-sm-12">
{{ Form::label('active', 'Active:') }}
<label class="checkbox-inline">
{{ Form::hidden('active', 0, false) }}
{{ Form::checkbox('active', 1, null) }}
{{ Form::hidden('active', 0, false) }}
{{ Form::checkbox('active', 1, null) }}
</label>
</div>
</div>
<!-- Submit Field -->
<div class="form-group col-sm-12">
<!-- Submit Field -->
<div class="form-group col-sm-12">
<div class="pull-right">
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
<a href="{{ route('admin.fares.index') }}" class="btn btn-warn">Cancel</a>
{{ Form::button('Save', ['type' => 'submit', 'class' => 'btn btn-success']) }}
<a href="{{ route('admin.fares.index') }}" class="btn btn-warn">Cancel</a>
</div>
</div>
</div>
</div>

View File

@@ -1,5 +1,5 @@
@extends('admin.app')
@section('title', 'Import Fares')
@section('content')
@include('admin.common.import', ['route' => 'admin.fares.import'])
@include('admin.common.import', ['route' => 'admin.fares.import'])
@endsection

View File

@@ -2,16 +2,16 @@
@section('title', 'Fares')
@section('actions')
<li><a href="{{ route('admin.fares.export') }}"><i class="ti-plus"></i>Export to CSV</a></li>
<li><a href="{{ route('admin.fares.import') }}"><i class="ti-plus"></i>Import from CSV</a></li>
<li><a href="{{ route('admin.fares.create') }}"><i class="ti-plus"></i>Add New</a></li>
<li><a href="{{ route('admin.fares.export') }}"><i class="ti-plus"></i>Export to CSV</a></li>
<li><a href="{{ route('admin.fares.import') }}"><i class="ti-plus"></i>Import from CSV</a></li>
<li><a href="{{ route('admin.fares.create') }}"><i class="ti-plus"></i>Add New</a></li>
@endsection
@section('content')
<div class="card border-blue-bottom">
<div class="content">
@include('admin.fares.table')
</div>
<div class="card border-blue-bottom">
<div class="content">
@include('admin.fares.table')
</div>
</div>
@endsection

View File

@@ -1,9 +1,9 @@
@extends('admin.app')
@section('content')
<div class="card border-blue-bottom">
<div class="card border-blue-bottom">
<div class="content">
@include('admin.fares.show_fields')
@include('admin.fares.show_fields')
</div>
</div>
</div>
@endsection

View File

@@ -1,35 +1,35 @@
<!-- Code Field -->
<div class="form-group">
{{ Form::label('code', 'Code:') }}
<p>{{ $fare->code }}</p>
{{ Form::label('code', 'Code:') }}
<p>{{ $fare->code }}</p>
</div>
<!-- Name Field -->
<div class="form-group">
{{ Form::label('name', 'Name:') }}
<p>{{ $fare->name }}</p>
{{ Form::label('name', 'Name:') }}
<p>{{ $fare->name }}</p>
</div>
<!-- Price Field -->
<div class="form-group">
{{ Form::label('price', 'Price:') }}
<p>{{ $fare->price }}</p>
{{ Form::label('price', 'Price:') }}
<p>{{ $fare->price }}</p>
</div>
<!-- Cost Field -->
<div class="form-group">
{{ Form::label('cost', 'Cost:') }}
<p>{{ $fare->cost }}</p>
{{ Form::label('cost', 'Cost:') }}
<p>{{ $fare->cost }}</p>
</div>
<!-- Notes Field -->
<div class="form-group">
{{ Form::label('notes', 'Notes:') }}
<p>{{ $fare->notes }}</p>
{{ Form::label('notes', 'Notes:') }}
<p>{{ $fare->notes }}</p>
</div>
<!-- Active Field -->
<div class="form-group">
{{ Form::label('active', 'Active:') }}
<p>{{ $fare->active }}</p>
{{ Form::label('active', 'Active:') }}
<p>{{ $fare->active }}</p>
</div>

View File

@@ -1,36 +1,36 @@
<table class="table table-hover table-responsive" id="fares-table">
<thead>
<th>Code</th>
<th>Name</th>
<th>Price</th>
<th>Cost</th>
<th>Notes</th>
<th class="text-center">Active</th>
<th class="text-right">Action</th>
</thead>
<tbody>
@foreach($fares as $fare)
<tr>
<td><a href="{{ route('admin.fares.edit', [$fare->id]) }}">{{ $fare->code }}</a></td>
<td>{{ $fare->name }}</td>
<td>{{ $fare->price }}</td>
<td>{{ $fare->cost }}</td>
<td>{{ $fare->notes }}</td>
<td class="text-center">
@if($fare->active == 1)
<span class="label label-success">Active</span>
@else
<span class="label label-default">Inactive</span>
@endif
</td>
<td class="text-right">
{{ Form::open(['route' => ['admin.fares.destroy', $fare->id], 'method' => 'delete']) }}
<a href="{{ route('admin.fares.edit', [$fare->id]) }}" class='btn btn-sm btn-success btn-icon'>
<i class="fas fa-pencil-alt"></i></a>
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
<thead>
<th>Code</th>
<th>Name</th>
<th>Price</th>
<th>Cost</th>
<th>Notes</th>
<th class="text-center">Active</th>
<th class="text-right">Action</th>
</thead>
<tbody>
@foreach($fares as $fare)
<tr>
<td><a href="{{ route('admin.fares.edit', [$fare->id]) }}">{{ $fare->code }}</a></td>
<td>{{ $fare->name }}</td>
<td>{{ $fare->price }}</td>
<td>{{ $fare->cost }}</td>
<td>{{ $fare->notes }}</td>
<td class="text-center">
@if($fare->active == 1)
<span class="label label-success">Active</span>
@else
<span class="label label-default">Inactive</span>
@endif
</td>
<td class="text-right">
{{ Form::open(['route' => ['admin.fares.destroy', $fare->id], 'method' => 'delete']) }}
<a href="{{ route('admin.fares.edit', [$fare->id]) }}" class='btn btn-sm btn-success btn-icon'>
<i class="fas fa-pencil-alt"></i></a>
{{ Form::button('<i class="fa fa-times"></i>', ['type' => 'submit', 'class' => 'btn btn-sm btn-danger btn-icon', 'onclick' => "return confirm('Are you sure?')"]) }}
{{ Form::close() }}
</td>
</tr>
@endforeach
</tbody>
</table>