{{-- ICTHospital - medicine catalogue. Copyright (c) DEVtrust Part of ICTHospital Licensed under the GNU General Public License v3.0. --}} @extends('layouts.master') @section('style') @stop @section('content') @if (Session::get('success'))
{{ Session::get('success') }}
@endif @if (Session::get('error'))
{{ Session::get('error') }}
@endif

@if ($medicines->total() === 0)

Nothing in the catalogue yet.

@else @foreach ($medicines as $medicine) @endforeach
Name Generic Company Pack In stock Expires Actions
{{ $medicine->name }} {{ $medicine->generic }} {{ $medicine->company }} {{ $medicine->box }} @if ((int) $medicine->quantity === 0) Out of stock @else {{ $medicine->quantity }} @endif {{ $medicine->e_date }}
{{ csrf_field() }}

{{ $medicines->total() }} medicine(s).

{!! $medicines->links() !!} @endif
@stop @section('script') @stop