Skip to content

Commit

Permalink
ll
Browse files Browse the repository at this point in the history
  • Loading branch information
bogdankharchenko committed Jan 31, 2025
1 parent a226af4 commit b673e84
Showing 1 changed file with 111 additions and 111 deletions.
222 changes: 111 additions & 111 deletions resources/views/orgs/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b673e84

Please sign in to comment.