|
@@ -55,7 +55,7 @@
|
|
@foreach($daysOfWeek as $dayOfWeek)
|
|
@foreach($daysOfWeek as $dayOfWeek)
|
|
<option value="{{$dayOfWeek}}">{{$dayOfWeek}}</option>
|
|
<option value="{{$dayOfWeek}}">{{$dayOfWeek}}</option>
|
|
@endforeach
|
|
@endforeach
|
|
- </select>
|
|
|
|
|
|
+ </select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<div class="form-group">
|
|
<label for="" class="control-label">Start Time </label>
|
|
<label for="" class="control-label">Start Time </label>
|
|
@@ -82,36 +82,39 @@
|
|
</tr>
|
|
</tr>
|
|
</thead>
|
|
</thead>
|
|
<tbody>
|
|
<tbody>
|
|
- @foreach($generalAvailabilities as $ga)
|
|
|
|
|
|
+ @foreach($daysOfWeek as $dow)
|
|
<tr>
|
|
<tr>
|
|
- <td>{{$ga->day_of_week}}</td>
|
|
|
|
- <td>{{$ga->start_time}}</td>
|
|
|
|
- <td>{{$ga->end_time}}</td>
|
|
|
|
- <td></td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
-
|
|
|
|
- <div class="card mb-2">
|
|
|
|
- <div class="card-header">
|
|
|
|
- Specific Availability
|
|
|
|
- </div>
|
|
|
|
- <table class="table table-sm table-striped">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th>Start Time</th>
|
|
|
|
- <th>End Time</th>
|
|
|
|
- <th></th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- @foreach($specificAvailabilities as $ga)
|
|
|
|
- <tr>
|
|
|
|
- <td>{{$ga->start_time}}</td>
|
|
|
|
- <td>{{$ga->end_time}}</td>
|
|
|
|
- <td></td>
|
|
|
|
|
|
+ <td>{{$dow}}</td>
|
|
|
|
+ <td>{{isset($generalAvailabilities[$dow]) ? $generalAvailabilities[$dow]->start_time : ''}}</td>
|
|
|
|
+ <td>{{isset($generalAvailabilities[$dow]) ? $generalAvailabilities[$dow]->end_time : ''}}</td>
|
|
|
|
+ <td>
|
|
|
|
+ @if(isset($generalAvailabilities[$dow]))
|
|
|
|
+ <div moe wide class="mr-2">
|
|
|
|
+ <a start show>
|
|
|
|
+ update
|
|
|
|
+ </a>
|
|
|
|
+ <form url="/api/proGeneralAvailability/update">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$generalAvailabilities[$dow]->uid}}">
|
|
|
|
+ <input type="hidden" name="timezone" value="EASTERN">
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ {{$generalAvailabilities[$dow]->day_of_week}}
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="" class="control-label">Start Time </label>
|
|
|
|
+ <input class="form-control" type="time" name="startTime" value="{{military_time($generalAvailabilities[$dow]->start_time)}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group">
|
|
|
|
+ <label for="" class="control-label">End Time </label>
|
|
|
|
+ <input class="form-control" type="time" name="endTime" value="{{military_time($generalAvailabilities[$dow]->end_time)}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group m-0">
|
|
|
|
+ <button submit class="btn btn-primary btn-sm mr-2">Submit</button>
|
|
|
|
+ <button cancel class="btn btn-default border btn-sm mr-2">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ @endif
|
|
|
|
+ </td>
|
|
</tr>
|
|
</tr>
|
|
@endforeach
|
|
@endforeach
|
|
</tbody>
|
|
</tbody>
|
|
@@ -119,40 +122,10 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="card mb-2">
|
|
<div class="card mb-2">
|
|
- <div class="card-header">
|
|
|
|
- Specific Unavailability
|
|
|
|
- </div>
|
|
|
|
- <table class="table table-sm table-striped">
|
|
|
|
- <thead>
|
|
|
|
- <tr>
|
|
|
|
- <th>Start Time</th>
|
|
|
|
- <th>End Time</th>
|
|
|
|
- <th>Title</th>
|
|
|
|
- <th></th>
|
|
|
|
- </tr>
|
|
|
|
- </thead>
|
|
|
|
- <tbody>
|
|
|
|
- @foreach($specificUnavailabilities as $su)
|
|
|
|
- <tr>
|
|
|
|
- <td>{{$su->start_time}}</td>
|
|
|
|
- <td>{{$su->end_time}}</td>
|
|
|
|
- <td>{{$su->title}}</td>
|
|
|
|
- <td></td>
|
|
|
|
- </tr>
|
|
|
|
- @endforeach
|
|
|
|
- </tbody>
|
|
|
|
- </table>
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="col-md-6">
|
|
|
|
- <div class="card">
|
|
|
|
-
|
|
|
|
- <div class="card-header px-3 py-2 d-flex align-items-center">
|
|
|
|
- <strong class="">
|
|
|
|
- <i class="fas fa-user-injured"></i>
|
|
|
|
- My Availability
|
|
|
|
- </strong>
|
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
|
|
|
+ <div class="card-header d-flex">
|
|
|
|
+ <div class="mr-2">
|
|
|
|
+ Specific Availability
|
|
|
|
+ </div>
|
|
<div moe wide class="mr-2">
|
|
<div moe wide class="mr-2">
|
|
<a start show>
|
|
<a start show>
|
|
Add Specific Availability
|
|
Add Specific Availability
|
|
@@ -185,8 +158,32 @@
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
+ </div>
|
|
|
|
+ <table class="table table-sm table-striped">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>Start Time</th>
|
|
|
|
+ <th>End Time</th>
|
|
|
|
+ <th></th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach($specificAvailabilities as $ga)
|
|
|
|
+ <tr>
|
|
|
|
+ <td>{{friendly_date_time_short($ga->start_time)}}</td>
|
|
|
|
+ <td>{{friendly_date_time_short($ga->end_time)}}</td>
|
|
|
|
+ <td></td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
|
|
- <span class="mx-2 text-secondary">|</span>
|
|
|
|
|
|
+ <div class="card mb-2">
|
|
|
|
+ <div class="card-header d-flex">
|
|
|
|
+ <div class="mr-2">
|
|
|
|
+ Specific Unavailability
|
|
|
|
+ </div>
|
|
<div moe wide class="mr-2">
|
|
<div moe wide class="mr-2">
|
|
<a start show>
|
|
<a start show>
|
|
Add Specific Unvailability
|
|
Add Specific Unvailability
|
|
@@ -220,8 +217,71 @@
|
|
</form>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <table class="table table-sm table-striped">
|
|
|
|
+ <thead>
|
|
|
|
+ <tr>
|
|
|
|
+ <th>Start Time</th>
|
|
|
|
+ <th>End Time</th>
|
|
|
|
+ <th>Title</th>
|
|
|
|
+ <th></th>
|
|
|
|
+ </tr>
|
|
|
|
+ </thead>
|
|
|
|
+ <tbody>
|
|
|
|
+ @foreach($specificUnavailabilities as $su)
|
|
|
|
+ <tr>
|
|
|
|
+ <td>{{friendly_date_time_short_with_tz($su->start_time, $su->timezone)}}</td>
|
|
|
|
+ <td>{{friendly_date_time_short_with_tz($su->end_time, $su->timezone)}}</td>
|
|
|
|
+ <td>{{$su->title}}</td>
|
|
|
|
+ <td>
|
|
|
|
+ <div moe wide class="mr-2">
|
|
|
|
+ <a start show>
|
|
|
|
+ update
|
|
|
|
+ </a>
|
|
|
|
+ <form url="/api/proSpecificUnavailability/update">
|
|
|
|
+ <input type="hidden" name="uid" value="{{$su->uid}}">
|
|
|
|
+ <input type="hidden" name="timezone" value="EASTERN">
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <input type="text" class="form-control form-control-sm" name="title" value="{{$su->title}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="control-label">Start Date </label>
|
|
|
|
+ <input class="form-control" type="date" name="startDate" value="{{unfriendly_date($su->start_time)}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="control-label">Start Time </label>
|
|
|
|
+ <input class="form-control" type="time" name="startTime" value="{{military_time($su->start_time, $su->timezone)}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="control-label">End Date </label>
|
|
|
|
+ <input class="form-control" type="date" name="endDate" value="{{unfriendly_date($su->end_time)}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="mb-2">
|
|
|
|
+ <label for="" class="control-label">End Time </label>
|
|
|
|
+ <input class="form-control" type="time" name="endTime" value="{{military_time($su->end_time, $su->timezone)}}">
|
|
|
|
+ </div>
|
|
|
|
+ <div class="form-group m-0">
|
|
|
|
+ <button submit class="btn btn-primary btn-sm mr-2">Submit</button>
|
|
|
|
+ <button cancel class="btn btn-default border btn-sm mr-2">Cancel</button>
|
|
|
|
+ </div>
|
|
|
|
+ </form>
|
|
|
|
+ </div>
|
|
|
|
+ </td>
|
|
|
|
+ </tr>
|
|
|
|
+ @endforeach
|
|
|
|
+ </tbody>
|
|
|
|
+ </table>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="col-md-6">
|
|
|
|
+ <div class="card">
|
|
|
|
+ <div class="card-header px-3 py-2 d-flex align-items-center">
|
|
|
|
+ <strong class="">
|
|
|
|
+ <i class="fas fa-user-injured"></i>
|
|
|
|
+ My Availability
|
|
|
|
+ </strong>
|
|
|
|
+ </div>
|
|
<div class="card-body p-0">
|
|
<div class="card-body p-0">
|
|
- <div id="pro-availability-calendar"></div>
|
|
|
|
|
|
+ <div id="pro-availability-calendar" class="mx-2"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|