@extends('layouts.admin') @section('content')
@can(['cashier_create','cashier_edit'])
@if (isset($cashier)) {{ trans('global.edit') }} {{ trans('cruds.cashier.title_singular') }} @else {{ trans('global.add') }} {{ trans('cruds.cashier.title_singular') }} @endif
@if (isset($cashier))
@method('PUT') @else @endif @csrf
@if($errors->first('type'))
{{ $errors->first('type') }}
@endif
@if($errors->has('name'))
{{ $errors->first('name') }}
@endif {{ trans('cruds.cashier.fields.name_helper') }}
@if($errors->has('surname'))
{{ $errors->first('surname') }}
@endif {{ trans('cruds.cashier.fields.surname_helper') }}

@if (isset($cashier)) @else @endif
@endcan
{{ trans('global.list') }} {{ trans('cruds.cashier.title_singular') }}
@if (count($cashier_list) == 0) @else @php $i = 1; @endphp @foreach ($cashier_list as $item) @php $i++; @endphp @endforeach @endif
{{__('ID')}} {{ trans('cruds.cashier.fields.name') }} {{ trans('cruds.header.fields.type') }} {{ trans('cruds.cashier.fields.status') }}
Records not found
{{$i}} {{$item->name}} {{$item->surname}} {{ucfirst($item->type)}} {!! $item->status == 1 ? 'Active' : 'Inactive' !!}
@can('cashier_edit') @endcan @can('cashier_delete') @endcan
@endsection @section('scripts') @endsection