@extends('layouts.app') @section('content')

Edit Attendance # {{ $name->name }}



{!! Form::model($attendance, [ 'method' => 'PATCH', 'url' => ['/admin/name/attendance', $attendance->id,$id2], 'class' => 'form-vertical', 'id' => 'myform', 'files' => true ]) !!}
Attendance Records
{!! Form::select('attendance_type_id',['' => 'Select Type'] + $page_data['attendance_type']->toArray() , null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('attendance_type_id', '

:message

') !!}
{!! Form::text('date_out', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('date_out', '

:message

') !!}
{!! Form::text('date_in', null, ['class' => 'm-wrap span12','onChange'=>'calculate_diff()']) !!} {!! $errors->first('date_in', '

:message

') !!}
{!! Form::text('days', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('days', '

:message

') !!}
{!! Form::text('remark', null, ['class' => 'm-wrap span12']) !!} {!! $errors->first('remark', '

:message

') !!}
{!! Form::submit(isset($submitButtonText) ? $submitButtonText : 'Update', ['class' => 'btn green']) !!}
{!! Form::close() !!}
@endsection