51 lines
2.0 KiB
PHP
51 lines
2.0 KiB
PHP
@extends('Layouts.master')
|
|
|
|
@section('content')
|
|
<div class="main-container pb-4">
|
|
<form method="post" action="{{route('cabels.update',['cabel' => $data])}}">
|
|
@include('cabels.form_input')
|
|
@include('Partials.Form.Input.Submit.submit_edit')
|
|
</form>
|
|
@can('cabels_delete')
|
|
@include('Partials.Form.Input.Modal.delete')
|
|
@endcan
|
|
@can('cabels_amount_add')
|
|
<hr>
|
|
<form method="post">
|
|
@method('put')
|
|
@csrf
|
|
<div class="mb-3 row">
|
|
<label for="amount_input" class="col-2 col-form-label fw-bold">@lang('amount') : </label>
|
|
<div class="col-8">
|
|
<input
|
|
type="number"
|
|
class="form-control me-2"
|
|
name="amount"
|
|
id="amount_input"
|
|
placeholder="@lang('amount')"
|
|
@if(old('amount') !== null)
|
|
value="{{old('amount')}}"
|
|
@else
|
|
value="1"
|
|
@endif
|
|
>
|
|
</div>
|
|
<div class="col-2">
|
|
@can('cabels_amount_add')
|
|
<input type="submit" class="btn btn-success ms-2" value="@lang('amount_add')"
|
|
formaction="{{route('cabels.amount.add',['cabel' => $data])}}">
|
|
@endcan
|
|
@can('cabels_amount_remove')
|
|
<input type="submit" class="btn btn-danger ms-2" value="@lang('amount_remove')"
|
|
formaction="{{route('cabels.amount.remove',['cabel' => $data])}}">
|
|
@endcan
|
|
</div>
|
|
</div>
|
|
</form>
|
|
@endcan
|
|
</div>
|
|
@endsection
|
|
|
|
@section('scripting')
|
|
@endsection
|