Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcyLina committed Jun 10, 2024
1 parent 3ae1c1c commit f0fabbb
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 35 deletions.
1 change: 0 additions & 1 deletion resources/views/profile.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,4 @@
</form>
</x-panel>
</div>

@endsection
68 changes: 34 additions & 34 deletions resources/views/wizard.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

@section('content')
@php
$locale = new App\Localization\Locale();
$localePreferenceKey = 'locale';
$locale = new App\Localization\Locale();
$localePreferenceKey = 'locale';
@endphp
<div class="w-full">
<x-hero>
Expand All @@ -29,29 +29,29 @@

<div class="flex flex-wrap px-5 pb-2 mt-6 border rounded-md border-silver lg:flex-no-wrap md:px-8">
<div class="flex-auto w-full my-5 lg:flex-even md:my-8">
<label for="{{ $localePreferenceKey }}"
id="locale-label"
class="text-base font-medium text-steel">
<label class="text-base font-medium text-steel"
for="{{ $localePreferenceKey }}"
id="locale-label">
{{ __('Preferred Language') }}
</label>

<div class="relative max-w-xs mt-4">
<select
<select aria-labelledby="locale-label"
class="cursor-pointer block w-full px-4 py-2 pr-8 text-sm leading-tight bg-white border border-gray rounded-md shadow appearance-none hover:border-silver focus:outline-none focus:shadow-outline{{ $errors->has('name') ? ' border-cabernet' : '' }}"
name="{{ $localePreferenceKey }}"
aria-labelledby="locale-label">
name="{{ $localePreferenceKey }}">
@foreach ($locale->slugs() as $slug)
<option value="{{ $slug }}"
{{ locale() == $slug || old($localePreferenceKey) == $slug ? 'selected' : '' }}>
<option
{{ locale() == $slug || old($localePreferenceKey) == $slug ? 'selected' : '' }}
value="{{ $slug }}">
{{ $locale->languageForLocale($slug) }}</option>
@endforeach
</select>

<div
class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none text-steel">
<svg class="w-4 h-4 fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20">
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path
d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" />
</svg>
Expand All @@ -66,29 +66,29 @@ class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none tex
</div>

<div class="flex-auto w-full my-5 lg:flex-even md:my-8">
<label for="os"
id="os-label"
class="text-base font-medium text-steel">
<label class="text-base font-medium text-steel"
for="os"
id="os-label">
{{ __('Preferred Operating System') }}
</label>

<div class="relative max-w-xs mt-4">
<select
<select aria-labelledby="os-label"
class="block w-full text-sm px-4 py-2 pr-8 leading-tight bg-white border border-gray rounded shadow appearance-none hover:border-gray focus:outline-none focus:shadow-outline{{ $errors->has('os') ? ' border-cabernet' : '' }}"
name="os"
aria-labelledby="os-label">
name="os">
@foreach (App\OperatingSystem::ALL as $key)
<option value="{{ $key }}"
{{ Preferences::get('operating-system') == $key || old('os') == $key ? 'selected' : '' }}>
<option
{{ Preferences::get('operating-system') == $key || old('os') == $key ? 'selected' : '' }}
value="{{ $key }}">
@lang('operatingsystems.' . $key)</option>
@endforeach
</select>

<div
class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none text-steel">
<svg class="w-4 h-4 fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20">
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path
d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" />
</svg>
Expand All @@ -103,29 +103,28 @@ class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none tex
</div>

<div class="flex-auto w-full my-5 lg:flex-even md:my-8">
<label for="track"
id="track-label"
class="text-base font-medium text-steel">
<label class="text-base font-medium text-steel"
for="track"
id="track-label">
{{ __('Background Experience') }}
</label>

<div class="relative max-w-xs mt-4">
<select
<select aria-labelledby="track-label"
class="block w-full px-4 py-2 text-sm pr-8 leading-tight bg-white border border-gray rounded shadow appearance-none hover:border-gray focus:outline-none focus:shadow-outline{{ $errors->has('track') ? ' border-cabernet' : '' }}"
name="track"
aria-labelledby="track-label">
name="track">
@foreach (App\Models\Track::all() as $track)
<option value="{{ $track->id }}"
{{ old('track') == $track->id ? 'selected' : '' }}>
<option {{ old('track') == $track->id ? 'selected' : '' }}
value="{{ $track->id }}">
{{ $track->name }}</option>
@endforeach
</select>

<div
class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none text-steel">
<svg class="w-4 h-4 fill-current"
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20">
viewBox="0 0 20 20"
xmlns="http://www.w3.org/2000/svg">
<path
d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" />
</svg>
Expand All @@ -145,8 +144,9 @@ class="absolute inset-y-0 right-0 flex items-center px-2 pointer-events-none tex
<div class="pt-5 mt-8">
<div class="flex justify-start">
<span class="inline-flex">
<button type="submit"
class="p-2 text-white no-underline transition duration-200 ease-in-out border border-transparent rounded-md focus:bg-white focus:text-purple bg-purple hover:bg-white hover:text-purple hover:no-underline focus:outline-none border-purple active:bg-white active:text-purple">
<button
class="p-2 text-white no-underline transition duration-200 ease-in-out border border-transparent rounded-md focus:bg-white focus:text-purple bg-purple hover:bg-white hover:text-purple hover:no-underline focus:outline-none border-purple active:bg-white active:text-purple"
type="submit">
{{ ucfirst(__('complete')) }}
</button>
</span>
Expand Down

0 comments on commit f0fabbb

Please sign in to comment.