@extends('layouts.page') @section('title') Database Table @endsection @section('navs') @if (method_exists($dbmodel, 'route')) @endif @endsection @section('content') {{ Form::open(['url' => route('database.update_table', [$dbmodel->name(), $dbmodel->id])]) }} @foreach ($dbmodel->getAttributes() as $k => $v) @endforeach
Field Value
{{ $k }} @if (!request()->edit || in_array($k, ['id'])) {{ $v }} @else @endif
@if (request()->edit) {{ Form::submit('Update', ['class' => 'btn btn-success']) }} @endif {{ Form::close() }} @endsection