PHP Classes

File: src/views/crud/create.blade.php

Recommend this page to a friend!
  Classes of TJ Webb  >  Laravel CRUD Generator  >  src/views/crud/create.blade.php  >  Download  
File: src/views/crud/create.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Laravel CRUD Generator
Generate MVC classes for any Laravel model
Author: By
Last change:
Date: 2 years ago
Size: 970 bytes
 

Contents

Class file image Download
@extends('crud::layout')
@section('header')
<div class="row">
    <div class="col-lg-12 margin-tb">
        <div class="pull-left">
            <h2>Create {{$modelName}}</h2>
        </div>
        <div class="pull-right">
            <a class="btn btn-primary" href="{{ route($routeRoot . '.index') }}"> Back</a>
        </div>
    </div>
</div>
@endsection

@section('content')
<form action="{{ route($routeRoot . '.store') }}" method="POST">
    @csrf
    <div class="row">
        @foreach($fields as $field)
            @php
                $value = null;
                $fieldColumnName = $field->getColumnName();
                $fieldDisplayName = $field->getDisplayName();
            @endphp

            @include(field_view($modelName, $field, 'edit'))

        @endforeach
        <div class="col-xs-12 col-sm-12 col-md-12 text-center">
            <button type="submit" class="btn btn-primary">Submit</button>
        </div>
    </div>
</form>
@endsection

For more information send a message to info at phpclasses dot org.