source: resources/views/onboarding/artist/index.blade.php@ dfae77e

Last change on this file since dfae77e was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago
  • Initial commit;
  • Property mode set to 100644
File size: 5.7 KB
Line 
1@extends('layouts.app')
2
3@section('content')
4 <link href="https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.12/css/select2.min.css" rel="stylesheet"/>
5 <div class="container">
6 <div class="row justify-content-center">
7 <div class="col-md-8 mt-3">
8 <h3 class="mb-5">Onboarding | Artist - {{ \Illuminate\Support\Facades\Auth::user()->name }}</h3>
9 <form method="POST" action="/onboarding">
10 @csrf
11
12 <div class="mb-3">
13 <label for="birthDate" class="form-label">Birth Date</label>
14 @if(is_null($artist->birth_date) || trim($artist->birth_date) === '')
15 <input type="date" name="birth_date" id="birthDate" required>
16 @else
17 <p>{{ $artist->birth_date->isoFormat('DD-MM-Y') }}</p>
18 @endif
19 </div>
20 <div class="mb-3">
21 <div class="row">
22 <label for="birthDate" class="form-label">Location</label>
23 <div class="col-md-6">
24 @if(is_null($artist->country) || trim($artist->country) === '')
25 <select class="form-select mb-2" name="country" aria-label="Default select example"
26 required>
27 <option selected>Select Country</option>
28 <option value="North Macedonia">North Macedonia</option>
29 <option value="Serbia">Serbia</option>
30 <option value="France">France</option>
31 </select>
32 @else
33 <h6>City</h6>
34 <p>{{ $artist->country }}</p>
35 @endif
36 </div>
37 <div class="col-md-6">
38 @if(is_null($artist->city) || trim($artist->city) === '')
39 <select class="form-select" name="city" aria-label="Default select example"
40 required>
41 <option selected>Select City</option>
42 <option value="Skopje">Skopje</option>
43 <option value="Belgrade">Belgrade</option>
44 <option value="Paris">Paris</option>
45 </select>
46 @else
47 <h6>Country</h6>
48 <p>{{ $artist->city }}</p>
49 @endif
50 </div>
51 </div>
52 </div>
53 <div class="mb-3">
54 <div class="row">
55 <label for="birthDate" class="form-label">Artist Type</label>
56 <div class="col-12">
57 @if(is_null($artist->artist_type) || trim($artist->artist_type->name) === '')
58 <select class="form-select mb-2" name="artist_type"
59 aria-label="Default select example" required>
60 @foreach($types as $type)
61 <option value="{{ $type->name }}">{{ $type->name }}</option>
62 @endforeach
63 </select>
64 @else
65 <p>{{ $artist->artist_type->name }}</p>
66 @endif
67 </div>
68 </div>
69 </div>
70 <div class="mb-3">
71 <div class="row">
72 <label for="birthDate" class="form-label">Genres</label>
73 <div class="col-12">
74 @if($artist->genres->isEmpty())
75 <select class="form-select mb-2" name="genres[]" multiple
76 aria-label="Default select example" required>
77 @foreach($genres as $genre)
78 <option value="{{ $genre->id }}">{{ $genre->name }}</option>
79 @endforeach
80 </select>
81 @else
82 @foreach($artist->genres as $genre)
83 <p>{{ $genre->name }}</p>
84 @endforeach
85 @endif
86 </div>
87 </div>
88 </div>
89 <div class="mb-3">
90 <label for="exampleFormControlTextarea1" class="form-label">Short Description</label>
91 @if(is_null($artist->short_description) || trim($artist->short_description) === '')
92 <textarea class="form-control" name="short_description" id="exampleFormControlTextarea1"
93 rows="3"></textarea>
94 @else
95 <p>{{ $artist->short_description }}</p>
96 @endif
97 </div>
98
99 <button type="submit" class="btn btn-success">Submit</button>
100 </form>
101 </div>
102 </div>
103 </div>
104@endsection
Note: See TracBrowser for help on using the repository browser.