@extends('layouts.website') @section('content') @include('shared.messages')
{{ csrf_field() }} @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-name-read'))
user()->id==$user->id && !auth()->user()->can('user-form-name-write')) readonly @endif /> @if ($errors->has('name')) {{ $errors->first('name') }} @endif
@endif @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-email-read'))
user()->id==$user->id && !auth()->user()->can('user-form-email-write')) readonly @endif /> @if ($errors->has('email')) {{ $errors->first('email') }} @endif
@endif @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-mobile-read'))
user()->id==$user->id && !auth()->user()->can('user-form-mobile-write')) readonly @endif /> @if ($errors->has('mobile')) {{ $errors->first('mobile') }} @endif
@endif @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-phone-read'))
user()->id==$user->id && !auth()->user()->can('user-form-phone-write')) readonly @endif /> @if ($errors->has('phone')) {{ $errors->first('phone') }} @endif
@endif @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-fax-read'))
user()->id==$user->id && !auth()->user()->can('user-form-fax-write')) readonly @endif /> @if ($errors->has('fax')) {{ $errors->first('fax') }} @endif
@endif @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-password-read'))
user()->id==$user->id && !auth()->user()->can('user-form-password-write')) readonly @endif /> @if ($errors->has('password')) {{ $errors->first('password') }} @endif
@endif @if(auth()->user()->id==$user->id || auth()->user()->can('user-form-password-read'))
user()->id==$user->id && !auth()->user()->can('user-form-password-write')) readonly @endif /> @if ($errors->has('password_confirmation')) {{ $errors->first('password_confirmation') }} @endif
@endif
@endsection