@extends('dashboard.layouts.master',[ 'title' => $user->name , 'custom_template'=>true, 'crumbs' => [ {{-- [ route('dashboard.users.index'),__('users') ], --}} ] ]) @section('content') @component('dashboard.components.form', ['title' => __('add_user')]) @slot('open') {!! Form::model($user,['route' => 'dashboard.update-profile', 'method' => 'post', 'enctype' => 'multipart/form-data']) !!} @endslot @slot('body') @method('put')
{!! Form::text('name', null, ['class' => 'form-control fill']) !!} @if ($errors->has('name')) {{ $errors->first('name') }} @endif
{!! Form::text('phone', null, ['class' => 'form-control fill']) !!} @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
{!! Form::text('address', null, ['class' => 'form-control fill']) !!} @if ($errors->has('address')) {{ $errors->first('address') }} @endif
{!! Form::email('email', null, ['class' => 'form-control fill']) !!} @if ($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::password('password', null, ['class' => 'form-control fill']) !!} @if ($errors->has('password')) {{ $errors->first('password') }} @endif
{!! Form::password('password_confirmation', null, ['class' => 'form-control fill']) !!} @if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@endslot @endcomponent @stop @push('script') {!! JsValidator::formRequest('\App\Http\Requests\UserRequestUpdateProfile') !!} @endpush