@extends('layouts.admin') @section('title', $user->name) @section('content') @component('admin.dashboard.breadcumb') @endcomponent
Update User
@csrf @method('put')
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@if ($errors->has('old_password')) {{ $errors->first('old_password') }} @endif
@if ($errors->has('password')) {{ $errors->first('password') }} @endif
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@if ($errors->has('role')) {{ $errors->first('role') }} @endif
can_create == 1 ? 'checked' : ''}}>
can_edit == 1 ? 'checked' : ''}}>
can_view == 1 ? 'checked' : ''}}>
can_delete == 1 ? 'checked' : ''}}>
@endsection