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

Name

@if(Session::has('flash_message'))

{{ Session::get('flash_message') }}

@endif
Name Records
@foreach($name as $item) @endforeach
Name Function ID NR Passport Licence NR Tax ID Pension NR Employed Dismissed Status Actions
{{ $item->name }} {{ $item->function }} {{ $item->id_number }} {{ $item->passport }} {{ $item->licence_number }} {{ $item->tax_id }} {{ $item->pension_number }} {{ $item->employed_date }} {{ $item->dismissed_date }} {!! $item->status == 0 ? 'Inactive' : 'Active' !!} {!! Form::open([ 'method'=>'DELETE', 'url' => ['/admin/name', $item->id], 'style' => 'display:inline' ]) !!} {!! Form::button('', array( 'type' => 'submit', 'style' => 'padding: 7px 12px', 'class' => 'btn red btn-xs', 'title' => 'Delete Name', 'onclick'=>'return confirm("Confirm delete?")' )) !!} {!! Form::close() !!}
@endsection