@extends('layouts.master') @section('content') @if(Request::segment(2)==='edit-game' ) {{ Form::open(array('route' => 'admin-addgame-save','id'=> 'myForm', 'class'=> 'form-horizontal','enctype'=>'multipart/form-data', 'files'=>true)) }} {!! Form::hidden('id',$id,array('class'=>'form-control')) !!} @csrf

Edit

@if(auth()->user()->userType=='admin')
{!! Form::select('user_id', ['' => __('Select Developer')] + $allDevelopers, $user_id, ['class' => 'form-control select property_id select2 form-select', 'id' => 'user_id']) !!} @if ($errors->has('user_id')) {{ $errors->first('user_id') }} @endif
@endif
{!! Form::text('title',$title, array('id'=>'title','class'=> $errors->has('title') ? 'form-control is-invalid state-invalid' : 'form-control', 'placeholder'=>'Title', 'autocomplete'=>'off',$required)) !!} @if ($errors->has('title')) {{ $errors->first('title') }} @endif
{!! Form::select('genres_id',$genres,$genres_id, ['class' => 'form-control',$required]) !!} @if ($errors->has('genres_id')) {{ $errors->first('genres_id') }} @endif
{!! Form::select('dev_stage_id',$developingStage,$dev_stage_id, ['class' => 'form-control',$required]) !!} @if ($errors->has('dev_stage_id')) {{ $errors->first('dev_stage_id') }} @endif
{!! Form::text('app_url',$app_url, array('id'=>'app_url','class'=> $errors->has('app_url') ? 'form-control is-invalid state-invalid' : 'form-control', 'placeholder'=>'App url', 'autocomplete'=>'off')) !!}
{!! Form::text('app_publisher_name',$app_publisher_name, array('id'=>'app_publisher_name','class'=> $errors->has('app_publisher_name') ? 'form-control is-invalid state-invalid' : 'form-control', 'placeholder'=>'App Publisher Name', 'autocomplete'=>'off')) !!}
{!! Form::text('website_url',$website_url, array('id'=>'website_url','class'=> $errors->has('website_url') ? 'form-control is-invalid state-invalid' : 'form-control', 'placeholder'=>'website url', 'autocomplete'=>'off')) !!}
{!! Form::text('bundle_id',$bundle_id, array('id'=>'bundle_id','class'=> $errors->has('bundle_id') ? 'form-control is-invalid state-invalid' : 'form-control', 'placeholder'=>'Bundle ID', 'autocomplete'=>'off')) !!}
@if ($errors->has('platform')) {{ $errors->first('platform') }} @endif
{{ Form::close() }} @else

Users Game

@php $i = 0 @endphp @foreach($gametList as $rows) @endforeach
# Client Game ID Title Genres Developing Stage Platform Date Action
{!! ++$i !!} {!! ($rows->Client) ? $rows->Client->name :'' !!} {!! $rows->uuid !!} {!! $rows->title !!} {!! ($rows->genres) ? $rows->genres->name:'' !!} {!! ($rows->stage) ? $rows->stage->name:'' !!} {!! $rows->platform !!} {!! date('Y-m-d',strtotime($rows->created_at)) !!}
{{ Form::close() }}
@endif @endsection @section('extrajs') @endsection