Файл: src/resources/views/products/index.blade.php
Строк: 63
<?php
@extends('layouts.app')
@section('breadcrumb')
<ul class="breadcrumb">
<li>
<a href="{{route('get.dashboard')}}" title="{{trans('breadcrumb.dashboard')}}">
<span class="lnr lnr-home"></span> {{trans('breadcrumb.dashboard')}}
</a>
</li>
<li>
{{trans('breadcrumb.products')}}
</li>
</ul>
@stop
@section('content')
<div class="row">
<div class="col-sm-12">
@if(Session::get("ErrorMessage"))
<div class="alert alert-danger" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<span class="sr-only">{{trans('messages.failure_header')}}</span>
{{Session::get("ErrorMessage")}}
</div>
@endif
@if(Session::get("SuccessMessage"))
<div class="alert alert-success" role="alert">
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
<strong>{{trans('messages.success_header')}}</strong>
{{Session::get("SuccessMessage")}}
</div>
@endif
<div class="panel panel-flat">
<div class="panel-heading">
<h5>{!! trans('products.list_panel_title') !!}</h5>
</div>
<div class="panel-table">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>{{trans('products.label_title')}}</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach($Products as $Product)
<tr>
<td>{{$Product->ProductID}}</td>
<td>{{$Product->Title}}</td>
<td>
<a href="{{route('products::edit',$Product->ProductID)}}" data-toggle="tooltip" title="Edit"><i class="glyphicon glyphicon-edit"></i></a>
<a href="{{route('products::delete',$Product->ProductID)}}" data-toggle="tooltip" title="Delete" class="delete_this"><i class="glyphicon glyphicon-remove"></i></a>
</td>
</tr>
@endforeach
@if(empty($Products))
<tr>
<td colspan="5">
There is no record exists on the Companies table.
</td>
</tr>
@endif
</tbody>
</table>
</div>
<div class="panel-body">
<nav>
{{$Products->render()}}
</nav>
</div>
</div>
</div>
</div>
@stop
?>