source: resources/views/web/organizer/event/create.blade.php

Last change on this file was dfae77e, checked in by Igor Danilovski <igor_danilovski@…>, 2 years ago
  • Initial commit;
  • Property mode set to 100644
File size: 2.6 KB
RevLine 
[dfae77e]1@extends('layouts.app')
2
3@section('content')
4 <div class="container">
5 <div class="row justify-content-center">
6 <h3 class="mb-3">{{ isset($artist) ? 'Create Event & Send Request to ' . $artist->user->name : 'Create Event' }}</h3>
7
8 <form action="{{ isset($event) ? '/events/edit/' . $event->id : '/events/create'}}" method="POST">
9 @csrf
10 <input type="text" name="title" placeholder="Event Title" class="form-control mt-2 mb-2 ml-0 mr-0"
11 value="{{ $event->title ?? ''}}"
12 required
13 />
14 <input type="date" name="event_date" class="form-control mt-2 mb-2 ml-0 mr-0"
15 value="{{ isset($event->event_date) ? $event->event_date->format('Y-m-d') : '' }}"
16 required
17 />
18 <input type="time" name="start_time" class="form-control mt-2 mb-2 ml-0 mr-0"
19 value="{{ $event->start_time ?? '' }}"
20 required
21 />
22 <input type="time" name="end_time" class="form-control mt-2 mb-2 ml-0 mr-0"
23 value="{{ $event->end_time ?? ''}}"
24 required
25 />
26 <input type="text" name="city" placeholder="City" class="form-control mt-2 mb-2 ml-0 mr-0"
27 value="{{ $event->city ?? '' }}"
28 required
29 />
30 <input type="text" name="country" placeholder="Country" class="form-control mt-2 mb-2 ml-0 mr-0"
31 value="{{ $event->country ?? ''}}"
32 required
33 />
34 <select name="event_type" class="form-control mt-2 mb-2 ml-0 mr-0" required>
35 @foreach($event_types as $event_type)
36 <option
37 value="{{ $event_type->id }}"
38 {{ isset($event) && $event_type->id == $event->event_type->id ? 'selected' : '' }}>
39 {{ $event_type->name }}
40 </option>
41 @endforeach
42 </select>
43 <br>
44 <textarea name="description" id="" cols="30" rows="5" placeholder="Event description"
45 class="form-control mb-3 w-100" required> {{ $event->description ?? '' }}</textarea>
46 <input type="hidden" name="artist_id"
47 value="{{ $artist->user_id ?? ''}}"
48 />
49
50 <button type="submit" class="btn btn-success">Submit</button>
51 </form>
52 </div>
53 </div>
54@endsection
Note: See TracBrowser for help on using the repository browser.