@extends('app') @section('content') {!! Breadcrumbs::render('admin.volunteers.create') !!}

volunteers - {{ $volunteer ? 'Edit' : 'Add'}}

{{ $volunteer ? 'Edit' : 'Add'}} volunteer

{{--
--}}

@if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif {!! Form::model($volunteer,['route' => $volunteer ? ['admin.volunteers.update','id'=>$volunteer->id] : 'admin.volunteers.store','method'=> $volunteer ? 'PUT' : 'POST', 'id'=>'form_volunteers', 'novalidate'=>"novalidate"]) !!}
{!! Form::label('name', 'Name:', ['class' => 'form-label']) !!}
{!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('display_name', 'Display Name:', ['class' => 'form-label']) !!}
{!! Form::text('display_name', null, ['class' => 'form-control']) !!}
{!! Form::label('Description', 'Description:', ['class' => 'form-label']) !!}
{!! Form::textarea('description', null, ['class' => 'form-control','rows'=>3]) !!}
Cancel
{!! Form::submit($volunteer ? 'Update' : 'Save', ['class' => 'btn btn-primary btn-cons','id' => 'btn-submit']) !!}
{!! Form::close() !!}
@endsection