@extends('layouts.app') @section('content')

Store

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Store Records
{!! Form::open(['url' => '/admin/store/create','id'=>'myform','class' => 'form-vertical', 'files' => true]) !!}
{!! Form::text('name', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('name', '

:message

') !!}
{!! Form::text('section', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('section', '

:message

') !!}
{!! Form::text('bin', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('bin', '

:message

') !!}
{!! Form::select('status', ['Inactive', 'Active'], null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('status', '

:message

') !!}

{!! Form::close() !!} @foreach($store as $item) @endforeach
NameSectionBinStatusActions
{{ $item->name }} {{ $item->section }} {{ $item->bin }} {!! $item->status == 0 ? 'Inactive' : 'Active' !!} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/store', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button('', array( 'type' => 'submit', 'class' => 'btn red btn-xs', 'title' => 'Delete Store', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection