@extends('layouts.admin') @section('content') {{ Breadcrumbs::render('profile') }}

logo

Profile

{{ Form::open(['method' => 'PUT', 'route' => 'profile.update', 'enctype' => 'multipart/form-data']) }} {{ Form::token() }} @if(\Illuminate\Support\Facades\Auth::user()->isUser())
@if ($errors->has('first_name')) {{ $errors->first('first_name') }} @endif
@if ($errors->has('last_name')) {{ $errors->first('last_name') }} @endif
@endif @if(\Illuminate\Support\Facades\Auth::user()->isSupplier())
@if ($errors->has('business_name')) {{ $errors->first('business_name') }} @endif
@if ($errors->has('contact_name')) {{ $errors->first('contact_name') }} @endif
@if ($errors->has('site')) {{ $errors->first('site') }} @endif
@endif
@if ($errors->has('email')) {{ $errors->first('email') }} @endif
@if(\Illuminate\Support\Facades\Auth::user()->isUser()) @include('.admin.sections.update-user-profile', ['user' => $user]) @endif
@if ($errors->has('avatar')) {{ $errors->first('avatar') }} @endif
{{ Form::submit('Update', ['class' => 'btn btn-info ']) }} {{ Form::close() }}
@endsection