Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Update: ticket UI
Browse files Browse the repository at this point in the history
  • Loading branch information
nozomu-y committed Dec 31, 2021
1 parent 7dee641 commit 6436361
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions resources/views/tickets/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
</ol>
</nav>
@endif
<div class="row">
<div class="col-lg-4">
<div class="row justify-content-center">
<div class="col-lg-8">
@if (session('error'))
<div class="alert alert-warning alert-dismissible fade show" role="alert">
{{ session('error') }}
Expand Down Expand Up @@ -168,7 +168,7 @@
<div class="card mb-3">
<div class="card-header">{{ __('contact') }}</div>
<div class="card-body">
<table>
<table class="mb-3">
<tbody>
@if ($event->collect_name !== CollectType::DISABLED)
<tr>
Expand All @@ -193,14 +193,14 @@
@endif
</tbody>
</table>
@if (!$ticket->is_checked_in)
<div class="text-center">
<a
href="{{ route('guest_contact', ['event_id' => $event->event_id, 'ticket_id' => $ticket->ticket_id, 'token' => $ticket->token]) }}">{{ __('edit_contact') }}</a>
</div>
@endif
</div>
</div>
@if (!$ticket->is_checked_in)
<div class="text-center">
<a class="btn btn-primary mb-3"
href="{{ route('guest_contact', ['event_id' => $event->event_id, 'ticket_id' => $ticket->ticket_id, 'token' => $ticket->token]) }}">{{ __('edit_contact') }}</a>
</div>
@endif
@endif
@endif
@endif
Expand All @@ -224,19 +224,14 @@ class="text-break">{{ config('app.url') . '/' . $event->event_id . '/' . $ticket
@endif
</div>

<div class="col-lg-4 mb-3">
@if (url()->current() === route('show_ticket', ['event_id' => $event->event_id, 'ticket_id' => $ticket->ticket_id]))
<div class="card">
@if (url()->current() === route('show_ticket', ['event_id' => $event->event_id, 'ticket_id' => $ticket->ticket_id]))
<div class="col-lg-4">
<div class="card mb-3">
<div class="card-header">{{ __('memo') }} </div>
<div class="card-body">
{{ $ticket->memo }}
</div>
</div>
@endif
</div>

<div class="col-lg-4 mb-3">
@if (url()->current() === route('show_ticket', ['event_id' => $event->event_id, 'ticket_id' => $ticket->ticket_id]))
<div class="list-group mb-4">
<a class="list-group-item list-group-item-action"
href="{{ route('edit_ticket', ['event_id' => $event->event_id, 'ticket_id' => $ticket->ticket_id]) }}">{{ __('edit_ticket') }}</a>
Expand All @@ -255,7 +250,7 @@ class="text-break">{{ config('app.url') . '/' . $event->event_id . '/' . $ticket
@endif
@endif
</div>
@endif
</div>
</div>
@endif
</div>
@endsection

0 comments on commit 6436361

Please sign in to comment.