@extends('layouts.app') @section('content')

Промяна на потребител

{{ method_field('PATCH') }} {{ csrf_field() }}
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if(auth()->user()->role_id!=1 && auth()->user()->role_id!=4) @endif @if ($errors->has('role_id')) {{ $errors->first('role_id') }} @endif
@if ($errors->has('city_id')) {{ $errors->first('city_id') }} @endif
@if ($errors->has('color')) {{ $errors->first('color') }} @endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
active)==1 ? 'checked' : ''}}> @if ($errors->has('active')) {{ $errors->first('active') }} @endif
@endsection