@extends('layouts.app') @section('content')
{{ $agent->user->getFullName() }}
@role('admin') {{ Form::open([ 'route' => ['users.send-password-reset-link', $agent->user], 'onsubmit' => 'return confirm("Are you sure you want to reset this user\'s password")', ]) }} {{ Form::close() }} @endrole {{-- --}}
@include('agents.partials.tabs') {{ Form::model($agent, [ 'route' => [$agent->user->hasRole('new-agent') ? 'agents.new.update' : 'agents.update', $agent->id], 'class' => 'form', 'method' => 'PUT', ]) }} @include('agents.form') {{ Form::close() }}
@endsection