Graphics Settings
{{ Form::open(['route' => 'add-update-rating-graphic', 'files' => true]) }}
@php
$new_rating = 0.0;
$current_rating = floatval(count($data) == 0 ? 0.0 : str_replace('_', '.', $data[0]['rating_text']));
$floatedLabel = number_format($current_rating, 1);
$normalNumber = str_replace('.', '_', $floatedLabel);
$new_normalNumber = str_replace('.', '_', $new_rating);
if (count($data) == 0) {
$new_rating = 0.0;
} else {
$new_rating = $current_rating + 0.5;
}
@endphp
@if ($new_rating <= 5)
@endif
{{ Form::submit('Add New Image', ['class' => 'btn btn-primary', 'id' => 'submitButtonId', 'style' => 'width:200px; margin-top:10px;']) }}