@extends('layouts.grid') @section('content') {{ HTML::script('js/datatables.js') }}

{{ trans('labels.materials') }}

@foreach ($materials as $material) @endforeach
{{ link_to_route('newMaterial' , '', '', array( 'class'=>'button-small add', 'alt'=>'add', 'title'=>'προσθήκη')) }} {{ trans('labels.id') }} {{ trans('labels.desc') }} {{ trans('labels.brand') }} {{ trans('labels.size') }} {{ trans('labels.quantity') }} {{ trans('labels.price') }} {{ trans('labels.supplier') }}
{{ link_to_route('showMaterial' , '', array($material->id), array( 'class'=>'button-small show', 'alt'=>'show', 'title'=>'προβολή')) }} {{ link_to_route('editMaterial', '', array($material->id), array( 'class'=>'button-small upd', 'alt'=>'upd', 'title'=>'αλλαγή')) }} {{ link_to_route('deleteMaterial', '', array($material->id), array( 'class'=>'button-small del', 'alt'=>'del', 'title'=>'διαγραφή')) }} {{ substr('00000' . $material->id, -5) }} {{ $material->material_name }} {{ $material->material_brand . ' [' . $material->material_code .']' }} {{ $material->material_size }} {{ $material->material_qty }} {{ $material->unit_price . ' € / ' . $material->material_unit }} {{ empty($material->supplier_company ) ? $material->supplier_name : $material->supplier_company }}
@endsection