Initial commit
This commit is contained in:
85
resources/views/profile-organization/edit.blade.php
Normal file
85
resources/views/profile-organization/edit.blade.php
Normal file
@@ -0,0 +1,85 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
{{ __('Update your organization profile') }}
|
||||
</x-slot>
|
||||
|
||||
<div class="mx-auto max-w-7xl py-0 md:py-10 sm:px-6 lg:px-8">
|
||||
|
||||
@livewire('profile-organization.update-profile-organization-form')
|
||||
<x-jetstream.section-border />
|
||||
@livewire('locations.update-profile-location-form')
|
||||
<x-jetstream.section-border />
|
||||
@livewire('profile.update-profile-skills-form')
|
||||
</div>
|
||||
|
||||
@if($showIncompleteWarning ?? false)
|
||||
<!-- Incomplete Profile Warning Modal -->
|
||||
<div x-data="{ show: true }"
|
||||
x-show="show"
|
||||
x-init="$watch('show', value => { if (value) { document.body.classList.add('overflow-y-hidden'); } else { document.body.classList.remove('overflow-y-hidden'); } })"
|
||||
x-on:keydown.escape.window="show = false"
|
||||
class="jetstream-modal fixed inset-0 overflow-y-auto px-4 py-6 sm:px-0 z-50"
|
||||
style="display: none;">
|
||||
|
||||
<!-- Backdrop -->
|
||||
<div x-show="show"
|
||||
x-on:click="show = false"
|
||||
class="fixed inset-0 bg-black opacity-50"
|
||||
x-transition:enter="ease-out duration-300"
|
||||
x-transition:enter-start="opacity-0"
|
||||
x-transition:enter-end="opacity-100"
|
||||
x-transition:leave="ease-in duration-200"
|
||||
x-transition:leave-start="opacity-100"
|
||||
x-transition:leave-end="opacity-0">
|
||||
</div>
|
||||
|
||||
<!-- Modal Content -->
|
||||
<div x-show="show"
|
||||
class="mb-6 bg-theme-background rounded-lg overflow-hidden shadow-xl transform transition-all sm:w-full sm:max-w-2xl sm:mx-auto"
|
||||
x-transition:enter="ease-out duration-300"
|
||||
x-transition:enter-start="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95"
|
||||
x-transition:enter-end="opacity-100 translate-y-0 sm:scale-100"
|
||||
x-transition:leave="ease-in duration-200"
|
||||
x-transition:leave-start="opacity-100 translate-y-0 sm:scale-100"
|
||||
x-transition:leave-end="opacity-0 translate-y-4 sm:translate-y-0 sm:scale-95">
|
||||
|
||||
<div class="px-6 py-6">
|
||||
<!-- Header with Close Button -->
|
||||
<div class="flex items-center justify-between mb-6">
|
||||
<div class="flex items-center gap-3">
|
||||
<svg class="w-8 h-8 texr-red-700" fill="currentColor" viewBox="0 0 20 20">
|
||||
<path fill-rule="evenodd" d="M8.257 3.099c.765-1.36 2.722-1.36 3.486 0l5.58 9.92c.75 1.334-.213 2.98-1.742 2.98H4.42c-1.53 0-2.493-1.646-1.743-2.98l5.58-9.92zM11 13a1 1 0 11-2 0 1 1 0 012 0zm-1-8a1 1 0 00-1 1v3a1 1 0 002 0V6a1 1 0 00-1-1z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
<div class="text-xl font-medium text-theme-primary">
|
||||
{{ __('Your profile is currently hidden') }}
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" @click="show = false" class="text-theme-primary hover:text-theme-secondary transition-colors">
|
||||
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12"/>
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Content from side-post -->
|
||||
<div class="text-theme-primary">
|
||||
@livewire('side-post', [
|
||||
'type' => 'SiteContents\\ProfileIncomplete',
|
||||
'sticky' => true,
|
||||
'fallbackTitle' => __('Your profile is currently hidden'),
|
||||
'fallbackDescription' => __('Your profile is currently not visible to other users and organizations because it is incomplete.')
|
||||
])
|
||||
</div>
|
||||
|
||||
<!-- Footer -->
|
||||
<div class="flex justify-end mt-6 pt-6">
|
||||
<x-jetstream.secondary-button @click="show = false" type="button">
|
||||
{{ __('Close') }}
|
||||
</x-jetstream.secondary-button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
</x-app-layout>
|
||||
48
resources/views/profile-organization/login.blade.php
Normal file
48
resources/views/profile-organization/login.blade.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<div>
|
||||
|
||||
<x-app-layout>
|
||||
<x-jetstream.authentication-card>
|
||||
<x-slot name="logo">
|
||||
<x-jetstream.application-mark class="hidden md:block md:h-20 xl:h-28 w-auto md:mt-3" />
|
||||
</x-slot>
|
||||
|
||||
<x-jetstream.validation-errors class="mb-4" />
|
||||
|
||||
<form method="POST" action="{{ route('organization.login.post') }}">
|
||||
@csrf
|
||||
|
||||
<div class="mt-4" x-data="{ showPassword: false }">
|
||||
<x-jetstream.label for="password" value="{{ isset($profile) && $profile->name ? str_replace('@PROFILE_NAME@', $profile->name, __('Password of @PROFILE_NAME@')) : __('Password') }}" />
|
||||
<div class="relative">
|
||||
<x-jetstream.input id="password" class="block mt-1 w-full pr-10" ::type="showPassword ? 'text' : 'password'" name="password" required autocomplete="current-password" autofocus />
|
||||
<div class="absolute inset-y-0 right-0 pr-3 flex items-center text-sm leading-5">
|
||||
<button type="button" @click="showPassword = !showPassword" class="ring-opacity-70 hover:opacity-90 focus:outline-none focus:text-gray-700">
|
||||
<template x-if="showPassword">
|
||||
<x-icon name="eye" class="h-5 w-5" />
|
||||
</template>
|
||||
<template x-if="!showPassword">
|
||||
<x-icon name="eye-slash" class="h-5 w-5 opacity-70" />
|
||||
</template>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center justify-end mt-4">
|
||||
<x-jetstream.button>
|
||||
{{ __('Login as Organization') }}
|
||||
</x-jetstream.button>
|
||||
</div>
|
||||
</form>
|
||||
@if (Route::has('non-user.password.email') && isset($profile))
|
||||
<form method="GET" action="{{ route('non-user.password.request', ['profileType' => strtolower(class_basename($profile)), 'profileId' => $profile->id]) }}">
|
||||
@csrf
|
||||
<button type="submit" class="underline text-sm text-gray-600 hover:text-gray-900">
|
||||
{{ __('Forgot your password?') }}
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
</x-jetstream.authentication-card>
|
||||
</x-app-layout>
|
||||
|
||||
</div>
|
||||
27
resources/views/profile-organization/not_found.blade.php
Normal file
27
resources/views/profile-organization/not_found.blade.php
Normal file
@@ -0,0 +1,27 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
{{ __('Organization not found') }}
|
||||
</x-slot>
|
||||
|
||||
<div class="py-6">
|
||||
<div class="mx-auto max-w-7xl sm:px-6 lg:px-8">
|
||||
<div class="overflow-hidden bg-white shadow-xl sm:rounded-lg">
|
||||
<div class="border-b border-gray-200 bg-white p-6 sm:px-20">
|
||||
|
||||
<div class="mt-12">
|
||||
<!-- TODO: insert not found image here -->
|
||||
|
||||
<div class="mt-8 text-5xl font-bold text-gray-900">
|
||||
{{ __('Sorry, we can not find this organization') }}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
<div class="mb-12 mt-6">
|
||||
<span class="text-xl font-bold text-gray-900">{{ __('placeholder text') }}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</x-app-layout>
|
||||
30
resources/views/profile-organization/settings.blade.php
Normal file
30
resources/views/profile-organization/settings.blade.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<x-app-layout>
|
||||
<x-slot name="header">
|
||||
{{ __('Organization settings') }}
|
||||
</x-slot>
|
||||
|
||||
<div class="mx-auto max-w-7xl py-0 md:py-10 sm:px-6 lg:px-8">
|
||||
@livewire('profile.update-settings-form')
|
||||
<x-jetstream.section-border />
|
||||
{{-- @livewire('profile.update-non-user-password-form')
|
||||
<x-jetstream.section-border /> --}}
|
||||
@livewire('profile.update-profile-phone-form')
|
||||
<x-jetstream.section-border />
|
||||
<div class="mt-10 sm:mt-0">
|
||||
@livewire('profile.update-message-settings-form')
|
||||
</div>
|
||||
<x-jetstream.section-border />
|
||||
|
||||
<div class="mt-10 sm:mt-0">
|
||||
@livewire('profile.export-profile-data')
|
||||
</div>
|
||||
<x-jetstream.section-border />
|
||||
|
||||
@if (Laravel\Jetstream\Jetstream::hasAccountDeletionFeatures())
|
||||
<div class="mt-10 sm:mt-0">
|
||||
@livewire('profile.delete-user-form')
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
||||
</x-app-layout>
|
||||
Reference in New Issue
Block a user