@extends('layouts.admin') @section('content')
@can('machine_create','machine_edit')
@if (isset($machine)) {{ trans('global.edit') }} {{ trans('cruds.machine.title_singular') }} @else {{ trans('global.add') }} {{ trans('cruds.machine.title_singular') }} @endif {{-- --}}
@if (isset($machine))
@method('PUT') @else @endif
@csrf
@if($errors->first('type'))
{{ $errors->first('type') }}
@endif
@if($errors->has('title'))
{{ $errors->first('title') }}
@endif {{ trans('cruds.machine.fields.title_helper') }}
@if($errors->has('remarks'))
{{ $errors->first('remarks') }}
@endif {{ trans('cruds.machine.fields.remarks_helper') }}
@if (isset($machine)) @else @endif
@endcan
{{ trans('global.list') }} {{ trans('cruds.machine.title_singular') }}
@if (count($machine_list) == 0) @else @php $i = 1; @endphp @foreach ($machine_list as $ml) @php $i++; @endphp @endforeach @endif
{{__('ID')}} {{ trans('cruds.header.fields.type') }} {{ trans('cruds.machine.fields.title') }} {{ trans('cruds.machine.fields.remarks') }}
{{$i}} {{ucfirst($ml->type)}} {{$ml->title}} {{$ml->remarks}}
@can('machine_edit') @endcan @can('machine_delete') @endcan
@endsection @section('scripts') @endsection