@extends('layouts.admin') @section('content')
@if(Session::has('update_title_sub'))

{{Session('update_title_sub')}}

@endif
Create Title and Subtite and Chains Together
{!! Form::open(['method' => 'POST', 'action'=> 'App\Http\Controllers\TimesheettitleController@store','files'=>true]) !!}
{!! Form::label('title','Title:') !!} {!! Form::text('title', null, ['class' => 'form-control'],array('tabindex' => '1', 'required' => '')) !!}
{!! Form::submit('Create', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
@if(count($arraytile) > 0)
{!! Form::open(['method' => 'POST', 'action'=> 'App\Http\Controllers\TimesheettitleController@storecat','files'=>true]) !!}
{!! Form::label('categoryname','subtitle:') !!} {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::submit('Create', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
Update chain Subtitle's to Title
all title:
    @foreach($tscategory as $tsc)
  • @endforeach
Update Subtitle's and Title
{!! Form::open(['method' => 'POST', 'action'=> 'App\Http\Controllers\TimesheettitleController@changeSingleTitle','files'=>true]) !!}
{!! Form::label('title','Title:') !!} {!! Form::text('title', null, ['class' => 'form-control'],array('tabindex' => '1', 'required' => '')) !!} {{ Form::hidden('titleid', '',['class' => 'titleid']) }}
{!! Form::submit('Update', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
{!! Form::open(['method' => 'POST', 'action'=> 'App\Http\Controllers\TimesheettitleController@changeSingleSubTitle','files'=>true]) !!}
{!! Form::label('Subtitle','Subtitle:') !!} {!! Form::text('name', null, ['class' => 'form-control'],array('tabindex' => '1', 'required' => '')) !!} {{ Form::hidden('subtitleid', '',['class' => 'subtitleid']) }}
{!! Form::submit('Update', ['class'=>'btn btn-primary']) !!}
{!! Form::close() !!}
@endif
List Title and subtitle
@if($timesheettitles ) @foreach($timesheettitles as $tt) @endforeach @endif
Id Title Sub Title Status Delete
{{$tt->id}} {{$tt->title}} @if($tt->category) @foreach($tt->category as $cat) {{$cat}} @endforeach @endif @if($tt->is_active == NULL) active @elseif($tt->is_active == 'no') deactive @endif @if( $tt->is_active == 'no')
@csrf {{-- @method('DELETE') --}}
@else
@csrf {{-- @method('DELETE') --}}
@endif
@include('includes.form_error')
@endsection