@extends('layouts.app')
@section('page-title', __('Roles'))
@section('page-heading', $edit ? $role->name : __('Create New Role'))
@section('breadcrumbs')
@lang('Roles')
{{ __($edit ? 'Edit' : 'Create') }}
@stop
@section('content')
@include('partials.messages')
@if ($edit)
{!! Form::open(['route' => ['roles.update', $role], 'method' => 'PUT', 'id' => 'role-form']) !!}
@else
{!! Form::open(['route' => 'roles.store', 'id' => 'role-form']) !!}
@endif
@lang('Role Details')
@lang('A general role information.')
@stop
@section('scripts')
@if ($edit)
{!! JsValidator::formRequest('Vanguard\Http\Requests\Role\UpdateRoleRequest', '#role-form') !!}
@else
{!! JsValidator::formRequest('Vanguard\Http\Requests\Role\CreateRoleRequest', '#role-form') !!}
@endif
@stop