@extends('layouts.master') @section('title', 'Country') @section('links') @endsection @section('content')

Country Management

Country


@foreach ($countrys as $country) @endforeach
Sno. Country Name Action
{{++$i}}. {{$country->country_name}} {{ Form::open(array('url' => 'country/' . $country->country_id)) }} {{ Form::hidden('_method', 'DELETE') }} {{ Form::button('', ['type' => 'submit', 'class' => 'btn circle-delete del','onclick'=>"return confirm('Are you sure you want to delete this item?');"] ) }} {{ Form::close() }}
@if(!empty($editcountry))

Update Country Master

{{ Form::model($editcountry, array('action' => array('CountryController@update', $editcountry->country_id), 'method' => 'PUT')) }}
* {{ Form::text('country_name', null, array('class' => 'form-control')) }}
{{ Form::submit('Update Country!', array('class' => 'btn btn-primary')) }} {{ Form::close() }} @else

Add Country Master

{{ Form::open(array('url' => 'country','action' => array('CountryController@store'), 'method' => 'POST')) }}
* {{ Form::text('country_name', Input::old('country_name'), array('class' => 'form-control')) }}
{{ Form::submit('Create Country!', array('class' => 'btn btn-primary')) }} {{ Form::close() }} @endif
@endsection @section('scripts') @endsection