Fixed new ticket
This commit is contained in:
parent
79f9b67d3e
commit
f3a20682f0
1 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ $userPr = Auth::user()->sites ?? collect([]);
|
|||
@php
|
||||
$dataVue = [
|
||||
'name' => 'labels',
|
||||
'value' => old('labels', optional($ticket)->labels),
|
||||
'value' => old('labels', optional($ticket ?? null)->labels),
|
||||
'labels' => \App\Models\Label::all()
|
||||
];
|
||||
@endphp
|
||||
|
|
@ -55,7 +55,7 @@ $userPr = Auth::user()->sites ?? collect([]);
|
|||
|
||||
<div class="form-group mb-5">
|
||||
<label for="text" class="col-form-label text-md-right">{{ __('Description') }}</label>
|
||||
<textarea class="form-control" style="min-height: 15rem;" name="text" id="text" placeholder="{{ __('Description du ticket') }} *">{{ old('text') ?? $ticket->text ?? ''}}</textarea>
|
||||
<textarea rows="15" class="form-control" name="text" id="text" placeholder="{{ __('Description du ticket') }} *">{{ old('text') ?? $ticket->text ?? ''}}</textarea>
|
||||
</div>
|
||||
<h4>Fichier joint 1</h4>
|
||||
<div class="form-group mb-3">
|
||||
|
|
@ -63,7 +63,7 @@ $userPr = Auth::user()->sites ?? collect([]);
|
|||
@if (isset($ticket) and $ticket->file !== null)
|
||||
<hr>
|
||||
<div class="text-center">
|
||||
<img src="{{ asset($ticket->file) }}" style="max-width: 100%;">
|
||||
<img class="img-fluid" src="{{ asset($ticket->file) }}">
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
|
@ -73,7 +73,7 @@ $userPr = Auth::user()->sites ?? collect([]);
|
|||
@if (isset($ticket) and $ticket->file2 !== null)
|
||||
<hr>
|
||||
<div class="text-center">
|
||||
<img src="{{ asset($ticket->file2) }}" style="max-width: 100%;">
|
||||
<img class="img-fluid" src="{{ asset($ticket->file2) }}">
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue