File manager - Edit - /var/www/html/portal/resources/views/admin/cultura/credenciamentoMusicos/convocacoes/show.blade.php
Back
@extends('layouts.admin.theme') @section('title', env('APP_NAME') . ' :: ' . __('Convocações') . ' - ' . $evento->nome) @section('content') <div class="card shadow-sm"> @php $headLine = "<i class='fa-solid fa-list-check'></i> " . __('Convocações') . ': ' . $evento->nome; @endphp @include('components.buttons._headLineButtonsBackAdd', [ 'headLine' => $headLine, 'routeBack' => 'admin.cultura.credenciamentoMusicos.convocacoes.index', 'routeBackParams' => [], 'nameBack' => __('Voltar'), 'permission' => 'GERENCIADOR_CREDENCIAMENTO_DE_MUSICOS', ]) <div class="card-body"> @include('errors.messageFlash') <h5 class="mb-3">{{ __('Convocados neste evento') }}</h5> @if($convocacoes->isEmpty()) <p class="text-muted">{{ __('Nenhuma convocação ainda.') }}</p> @else <div class="table-responsive mb-4"> <table class="table table-sm"> <thead> <tr> <th>{{ __('Ordem') }}</th> <th>{{ __('Artista / Grupo') }}</th> <th>{{ __('Data') }}</th> <th>{{ __('Status') }}</th> <th></th> </tr> </thead> <tbody> @foreach($convocacoes as $c) <tr> <td>{{ $c->ordem }}</td> <td>{{ $c->musico->grupo_nome ?: optional($c->musico->user)->name }}</td> <td>{{ $c->data_convocacao ? $c->data_convocacao->format('d/m/Y') : '–' }}</td> <td> @if($c->status === 'CONFIRMADA') <span class="badge bg-success">{{ __('Confirmada') }}</span> @elseif($c->status === 'CANCELADA') <span class="badge bg-danger">{{ __('Cancelada') }}</span> @else <span class="badge bg-warning text-dark">{{ __('Pendente') }}</span> @endif </td> <td> <form action="{{ route('admin.cultura.credenciamentoMusicos.convocacoes.updateStatus', $c) }}" method="post" class="d-inline"> @csrf @method('patch') <input type="hidden" name="status" value="{{ $c->status === 'CONFIRMADA' ? 'PENDENTE' : 'CONFIRMADA' }}"> <button type="submit" class="btn btn-sm btn-outline-secondary">{{ $c->status === 'CONFIRMADA' ? __('Marcar pendente') : __('Confirmar') }}</button> </form> <form action="{{ route('admin.cultura.credenciamentoMusicos.convocacoes.destroy', $c) }}" method="post" class="d-inline" onsubmit="return confirm('{{ __('Remover esta convocação?') }}');"> @csrf @method('delete') <button type="submit" class="btn btn-sm btn-outline-danger">{{ __('Remover') }}</button> </form> </td> </tr> @endforeach </tbody> </table> </div> @endif <hr> <h5 class="mb-3">{{ __('Adicionar convocação') }}</h5> @if($elegiveis->isEmpty()) <p class="text-muted">{{ __('Todos os credenciados elegíveis já foram convocados para este evento, ou não há artistas credenciados no momento.') }}</p> @else <form action="{{ route('admin.cultura.credenciamentoMusicos.convocacoes.store', $evento) }}" method="post" class="row g-2 align-items-end"> @csrf <div class="col-12 col-md-5"> <label for="musico_id" class="form-label">{{ __('Artista / Grupo') }}</label> <select name="musico_id" id="musico_id" class="form-select" required> <option value="">{{ __('Selecione...') }}</option> @foreach($elegiveis as $m) <option value="{{ $m->id }}">{{ $m->grupo_nome ?: optional($m->user)->name }} ({{ $m->tipo_pessoa ?? 'PF' }})</option> @endforeach </select> </div> <div class="col-6 col-md-2"> <label for="ordem" class="form-label">{{ __('Ordem') }}</label> <input type="number" name="ordem" id="ordem" class="form-control" min="0" value="{{ ($convocacoes->max('ordem') ?? 0) + 1 }}"> </div> <div class="col-6 col-md-2"> <label for="tipo" class="form-label">{{ __('Tipo') }}</label> <input type="text" name="tipo" id="tipo" class="form-control" placeholder="{{ __('Opcional') }}"> </div> <div class="col-12 col-md-2"> <button type="submit" class="btn btn-primary w-100">{{ __('Convocar') }}</button> </div> <div class="col-12"> <label for="observacao" class="form-label">{{ __('Observação') }}</label> <input type="text" name="observacao" id="observacao" class="form-control" placeholder="{{ __('Opcional') }}"> </div> </form> @endif </div> </div> @endsection
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings