34 lines
1.6 KiB
PHP

<x-layout title="Edit Broker Profile">
<x-dashboard.page-heading
title="Edit Profile"
description="Modify your profile details"
:back-link="route('broker.profile.show', $profile)"
/>
<div class="flex items-center justify-center mt-8">
<x-dashboard.card class="w-8/12">
<h3 class="text-md font-bold">Profile Information</h3>
<form method="post" enctype="multipart/form-data" action="{{route('broker.profile.update', $profile)}}" class="flex flex-col space-y-8 mt-4">
@csrf
@method('PATCH')
<x-ui.input name="name" label="Name" :value="$profile->name" required placeholder="e.g. John Doe"/>
<x-ui.textarea :value="$broker->bio" name="bio" label="Bio" required
placeholder="Describe yourself in detail..."/>
<x-ui.input name="email" label="Email" :value="$profile->email" required placeholder="example@email.com"/>
<x-ui.input name="phone" label="Phone" :value="$broker->phone" required placeholder="+00 00000 00000"/>
<x-ui.input name="location" label="Location" :value="$broker->location" required placeholder="Kolkata, India"/>
<div class="grid grid-cols-12 w-full space-x-4">
<x-ui.button variant="neutral" class="col-span-10">Update</x-ui.button>
<x-ui.button :link="route('broker.profile.show', $profile)" class=" border border-accent-600/20 col-span-2">Cancel</x-ui.button>
</div>
</form>
</x-dashboard.card>
</div>
</x-layout>