@extends('layouts.admin.master') @section('title', 'Unit') @section('content')
Unit
Add New Unit
Clear
Save
Unit Info
@csrf
Unit Name
*
@error('unit_name')
{{ $message }}
@enderror
Other Name
*
@error('other_name')
{{ $message }}
@enderror
Discontinued
Unit Lists
@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'] }}
Update Unit
@csrf
Unit Name
*
Other Name
*
Discontinued
@csrf
Are you sure want to delete?
@endsection