- Removed `UserDashboardController` and related user dashboard views. - Introduced `ExplorePageController` and redesigned `explore.blade.php` as the main user-facing page. - Updated routing logic to redirect users (non-admin and non-broker) to the `explore` page. - Added dedicated sidebar and layout components for the broker dashboard, improving structure and navigation.
40 lines
1.8 KiB
PHP
40 lines
1.8 KiB
PHP
<x-dashboard.broker.layout title="Edit Broker Profile">
|
|
<x-slot:heading>
|
|
<x-dashboard.page-heading
|
|
title="Edit Profile"
|
|
description="Modify your profile details"
|
|
:back-link="route('broker.profile.show', $profile)"
|
|
/>
|
|
</x-slot:heading>
|
|
<div class="flex items-center justify-center">
|
|
<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-dashboard.broker.layout>
|