Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Customizable iCal Feeds for Dynamically Adding Events to Calendar Apps #487

Merged
merged 7 commits into from
Feb 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ll
bogdankharchenko committed Jan 31, 2025
commit b673e841d1f8df0b1b4252cf9dfc60acd6c7de19
222 changes: 111 additions & 111 deletions resources/views/orgs/show.blade.php
Original file line number Diff line number Diff line change
@@ -4,120 +4,120 @@
@section('description', 'Highlights of the '. $org->title . ' organization of '. $org->city . ', SC, including upcoming events, organizer, and history.')

@section('content')
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-md-auto mb-3 mb-md-0">
<h1 class="display-4 font-weight-bold text-primary mb-0" style="font-size: calc(1.8rem + 1.5vw);">
{{ $org->title }}
</h1>
</div>
<div class="container">
<div class="row align-items-center">
<div class="col-12 col-md-auto mb-3 mb-md-0">
<h1 class="display-4 font-weight-bold text-primary mb-0" style="font-size: calc(1.8rem + 1.5vw);">
{{ $org->title }}
</h1>
</div>

<div class="col-12 col-md-auto ml-md-auto">
<a href="{{ route('calendar-feed.show', ['o'=>[$org->id]]) }}" class="btn btn-primary rounded-pill px-4 py-2 shadow-sm w-100 w-md-auto">
<div class="fa fa-calendar mr-2"></div>
Subscribe to Calendar
</a>
</div>
</div>
<div class="col-12 col-md-auto ml-md-auto">
<a href="{{ route('calendar-feed.show', ['orgs'=>$org->id]) }}" class="btn btn-primary rounded-pill px-4 py-2 shadow-sm w-100 w-md-auto">
<div class="fa fa-calendar mr-2"></div>
Subscribe to Calendar
</a>
</div>
</div>

<blockquote>
{!! $org->description !!}
</blockquote>
<blockquote>
{!! $org->description !!}
</blockquote>

<table class="table">
<tbody>
@if($org->event_calendar_uri)
<tr>
<th scope="row">
Event Homepage
</th>
<td>
<a href="{{ $org->event_calendar_uri }}">{{ $org->event_calendar_uri }}</a>
</td>
</tr>
@endif
@if($org->uri)
<tr>
<th scope="row">
Organization Homepage
</th>
<td>
<a href="{{ $org->uri }}">{{ $org->uri }}</a>
</td>
</tr>
@endif
<tr>
<th scope="row">
City
</th>
<td>
{{ $org->city }}
</td>
</tr>
<tr>
<th scope="row">
Focus Area
</th>
<td>
{{ $org->focus_area }}
</td>
</tr>
<tr>
<th scope="row">
Contact Person
</th>
<td>
{{ $org->primary_contact_person }}
</td>
</tr>
<tr>
<th scope="row">
Organization Type
</th>
<td>
{{ $org->organization_type }}
</td>
</tr>
<tr>
<th scope="row">
Year Established
</th>
<td>
{{ $org->established_at->year }}
</td>
</tr>
@if($org->inactive_at)
<tr>
<th scope="row">
Year Inactive
</th>
<td>
{{ $org->inactive_at->year }}
</td>
</tr>
@endif
<tr>
<th scope="row">
Organization Status
</th>
<td>
<div style="font-size: 1.5em">
@if($org->isActive())
<span class="badge badge-success">Active</span>
@else
<span class="badge badge-info">Inactive</span>
@endif
</div>
</td>
</tr>
</tbody>
</table>
<table class="table">
<tbody>
@if($org->event_calendar_uri)
<tr>
<th scope="row">
Event Homepage
</th>
<td>
<a href="{{ $org->event_calendar_uri }}">{{ $org->event_calendar_uri }}</a>
</td>
</tr>
@endif
@if($org->uri)
<tr>
<th scope="row">
Organization Homepage
</th>
<td>
<a href="{{ $org->uri }}">{{ $org->uri }}</a>
</td>
</tr>
@endif
<tr>
<th scope="row">
City
</th>
<td>
{{ $org->city }}
</td>
</tr>
<tr>
<th scope="row">
Focus Area
</th>
<td>
{{ $org->focus_area }}
</td>
</tr>
<tr>
<th scope="row">
Contact Person
</th>
<td>
{{ $org->primary_contact_person }}
</td>
</tr>
<tr>
<th scope="row">
Organization Type
</th>
<td>
{{ $org->organization_type }}
</td>
</tr>
<tr>
<th scope="row">
Year Established
</th>
<td>
{{ $org->established_at->year }}
</td>
</tr>
@if($org->inactive_at)
<tr>
<th scope="row">
Year Inactive
</th>
<td>
{{ $org->inactive_at->year }}
</td>
</tr>
@endif
<tr>
<th scope="row">
Organization Status
</th>
<td>
<div style="font-size: 1.5em">
@if($org->isActive())
<span class="badge badge-success">Active</span>
@else
<span class="badge badge-info">Inactive</span>
@endif
</div>
</td>
</tr>
</tbody>
</table>

@if($org->events->isNotEmpty())
<h2>Upcoming Events</h2>
@foreach($org->events as $event)
@include('events._item', ['event' => $event])
@endforeach
@endif
@if($org->events->isNotEmpty())
<h2>Upcoming Events</h2>
@foreach($org->events as $event)
@include('events._item', ['event' => $event])
@endforeach
@endif
</div>
@endsection