@extends('layouts.master') @section('title') @lang('user.create_title') @endsection @section('content') @component('components.breadcrumb') @slot('li_1_link') {{ route('user.index') }} @endslot @slot('li_1') @lang('user.index_title') @endslot @slot('li_2') @lang('user.create_title') @endslot @slot('title') @lang('user.create_title') @endslot @endcomponent
@csrf
{{ Form::select('role_id', $roles, @$user->user_roles?->first()->id, ['class' => @$error_class . 'form-control select2', 'id' => 'role_id', 'placeholder' => trans('common.select_one'), 'required']) }} @if ($errors->has('role_id'))

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

@endif
@endsection