@extends('layouts.app') @section('content-header')
@if(!$store_terminal->id) {{ Breadcrumbs::render('stores-terminal', 'Assigned Terminal', '', $store) }}

Assign Terminal

@else {{ Breadcrumbs::render('stores-terminal', $terminal->mac, $terminal->id, $store) }}

Edit Assign Terminal

@endif
@endsection @section('content') @if(!$store_terminal->id) {!! Form::model($store_terminal, [ 'method' => 'POST', 'route' => ['terminal.store', Request::segment(3)], 'role' => 'form'])!!} @else {!! Form::model($store_terminal, [ 'method' => 'PUT', 'route' => ['terminal.update', Request::segment(3), $store_terminal->id], 'role' => 'form'])!!} @endif
@if (count($errors) > 0)
Whoops! There were some problems with your input.

    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif @if ($message = Session::get('fail'))
Whoops! There were some problems with your input.

{{ $message }}
@endif
{!! Form::label('lblMac', 'Mac Address'); !!} {!! Form::select( 'txtMac', $terminals, $store_terminal->terminal_id, [ 'class' => 'chosen-select form-control', 'data-placeholder' => 'Select Mac Address...' ] ); !!} @if ($errors->has('txtMac'))

{{$errors->first('txtMac')}}

@endif
{!! Form::submit('Submit', ['class' => 'btn btn-primary'])!!} {!! link_to_route('stores.show', 'Cancel', Request::segment(3), ['class' => 'btn btn-danger']) !!}
{!! Form::close() !!} @endsection @include('_components.scripts.form')