@extends('layouts.home_layout') @section('title','Generate Seeder') @section('style') @endsection @section('content')

Generate Seeder

{{-- --}}
@if ($tableName != '') @if ($tableExist)

Generated Seeder Form `{{$tableName}}` Table

                                    @php
                                        $totalColumn = count($columns);
                                        $totalLastKye = ($totalColumn - 1);
                                        // print_r($rows);
                                    @endphp
                                
@foreach ($rows as $key => $item) [
@foreach ($columns as $i => $col) @if($i != $totalLastKye)       "{{$col}}" => "{{$item->$col}}",
@else       "{{$col}}" => "{{$item->$col}}"
@endif @endforeach ],
@endforeach
@else
'{{$tableName}}' Table Not Found.
@endif @endif
@endsection @section('script') @endsection