PATH:
home
/
lab2454c
/
omvstudio.com
/
resources
/
views
/
admin
/
entertain
<div class="form-group"> <label for="entertainTitle">Title <span class="text-danger">*</span></label> <input type="text" name="title" class="form-control @error('title') is-invalid @enderror" id="entertainTitle" placeholder="Entertain Title" value="{{old('title', isset($entertain->title) ? $entertain->title:'')}}" /> </div> <div class="form-group"> <label for="entertainPrice">Price <span class="text-danger">*</span></label> <input type="text" name="price" class="form-control @error('price') is-invalid @enderror" id="entertainPrice" placeholder="Price" value="{{old('price', isset($entertain->price) ? number_format($entertain->price,2) : '')}}" /> </div> <div class="form-group"> <label for="entertainTenure">Tenure <span class="text-danger">*</span></label> <select name="tenure" id="" class="form-control @error('tenure') is-invalid @enderror"> <option value="" {{ !isset($entertain) ? "selected":"" }}>Select One</option> @if (!isset($entertain)) <option value="ANY MOVIE">ANY MOVIE</option> <option value="MONTH">MONTH</option> @else @if ($entertain->tenure == "ANY MOVIE") <option value="ANY MOVIE" selected>ANY MOVIE</option> <option value="MONTH">MONTH</option> @elseif($entertain->tenure == "MONTH") <option value="ANY MOVIE" >ANY MOVIE</option> <option value="MONTH" selected>MONTH</option> @else <option value="ANY MOVIE">ANY MOVIE</option> <option value="MONTH">MONTH</option> @endif @endif </select> </div> <button type="submit" class="btn btn-primary mr-2">{{isset($entertain) ? 'Update' : 'Create'}}</button> <a class="btn btn-dark" href="{{ route('entertain.index') }}">Cancel</a>
[-] form.blade.php
[edit]
[-] create.blade.php
[edit]
[-] edit.blade.php
[edit]
[+]
..
[-] list.blade.php
[edit]