1
Good afternoon guys I’m new to language and I’m kind of lost, I created in the route/web file the route of type Resource for my controller calling my Function Edit where to load my Edit.php view but when the screen is loaded my @extends is not loaded. could you help me ? follows below my codes.
route/web file:
Route::Resource('Lessons','Registersaulascontroller');
File View Index.blade.php
Id)}}">A
View File Edit.blade.php:
@extends('app.layouts') @Section('content')
<div class="card">
<div class="card-header">
</div>
<div class="card-block">
<div class="row">
<div class="col-sm-12 col-xl-3 m-b-30">
<form action="{{route('Aulas.update', $Aula->Id)}}" method="POST">
@method('PUT')
@csrf
<h4 class="sub-title">Ritmo</h4>
<input type="hidden" name="_token" value="{{csrf_token()}}">
<input class="form-control" type="text" name="Ritmo" id="Ritmo" value="{{$Aula->Ritmo}}"/>
</div>
<div class="col-sm-12 col-xl-3 m-b-30">
<h4 class="sub-title" >Dia da Semana</h4>
<input class="form-control" type="text" name="DiaSemana" id=DiaSemana value="{{$Aula->DiaSemana}}"/>
</div>
<div class="col-sm-12 col-xl-2 m-b-30">
<h4 class="sub-title">Horário</h4>
<input class="form-control" type="time" name="Horario" id="Horario" value="{{$Aula->Horario}}"/>
</div>
<div class="col-sm-12 col-xl-3 m-b-30">
<h4 class="sub-title">Status</h4>
<div class="form-radio m-b-30">
<div class="radio radiofill radio-success radio-inline">
<label>
@if ($Aula->Status == '1')
<input type="radio" checked="true" name="Status" id="Status" value="1">
<i class="helper"></i>Ativar
</label>
</div>
<div class="radio radiofill radio-warning radio-inline">
<label>
<input type="radio" name="Status" id="Status" value="0">
<i class="helper"></i>Desativar
@else
<input type="radio" name="Status" id="Status" value="1">
<i class="helper"></i>Ativar
</div>
<div class="radio radiofill radio-warning radio-inline">
<label>
<input type="radio" checked="true" name="Status" id="Status" value="0">
<i class="helper"></i>Desativar
@endif
</label>
</div>
</div>
</div>
Register @stop