@extends('layouts.admin.master') @section('title', 'Unit') @section('content')
Unit
@csrf
@error('unit_name')
{{ $message }}
@enderror
@error('other_name')
{{ $message }}
@enderror
@if (count($units) != 0) @php $count = 1; @endphp @foreach ($units as $unit) @if ($unit['is_discontinued'] == 0) @elseif ($unit['is_discontinued'] == 1) @endif @php $count++; @endphp @endforeach @endif
No Unit Name Other Name Discontinued Edit Delete
{{ $count }} {{ $unit['unit_name'] }} {{ $unit['other_name'] }}
@endsection