@extends('layouts.app') @section('content') {{-- Error and Status Card --}} @if(Session::has('message')) @endif @if ($errors->any()) @foreach ($errors->all() as $error) @endforeach @endif
{{-- Uplode form and picture --}}

Upload


{!! Form::open(['action' => 'App\Http\Controllers\CrudController@store', 'method' => 'POST']) !!}
{!! Form::label('first_name', 'First Name') !!} {!! Form::text('first_name', null, ['class'=>'form-control'])!!}
{!! Form::label('last_name', 'Last Name') !!} {!! Form::text('last_name', null, ['class'=>'form-control'])!!}
{!! Form::label('age', 'Age') !!} {!! Form::number('age', null, ['class'=>'form-control col-4'])!!}
{!! Form::submit('Upload', ['class'=>'btn btn-primary']) !!}

Get Data from Firebase Firestore.

{!! Form::label('doc_id', 'Document Id') !!} {!! Form::text('doc_id', null, ['class'=>'form-control'])!!}
{!! Form::submit('Get Data', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
{{-- Table --}}
@foreach ($students as $student) @endforeach
Document Id First Name Last Name Age
{{ $student->id() }} {{$student->data()['firstname']}} {{$student->data()['lastname']}} {{$student->data()['age']}}
@endsection()