@extends('layouts.appnew')
@section('title')
Vehicles
@endsection
@section('navs')
@if(Auth::user()->hasAnyDepartment(['admin']))
New
@endif
Total: {{ $vehicles->total() }}
Filter
@endsection
@section('content')
|
Model
|
Type
|
Number
|
@foreach ($vehicles as $vehicle)
|
{!! $vehicle->model !!}
|
{!! $vehicle->type !!}
|
{!! $vehicle->number !!}
|
@endforeach
{{ $vehicles->appends(Input::except('page'))->links() }}
@include ('vehicle.filter', ['route' => route('vehicles')])
@endsection