@extends('backend.layouts.master') @section('section-title', 'Unit') @section('page-title', 'Unit List') @if (check_permission('unit.store')) @section('action-button') Add Unit @endsection @endif @section('content')
@forelse($units as $data) @php $count_ru = App\Models\Unit::where('related_unit_id', $data->id)->count(); $count_pro = App\Models\Product::where('unit_id', $data->id)->count(); @endphp {{-- edit modal --}} @csrf @method('PUT') @foreach ($units as $unit) @endforeach {{-- delete modal --}} @csrf @method('DELETE') @empty @endforelse
#SL Name Related To Related Value Final Value Actions
{{ $loop->index + 1 }} {{ $data->name }} {{ $data->related_unit ? $data->related_unit->name : '-' }} {{ $data->related_value ? $data->related_value : '-' }} @if ($data->related_unit) {{ $data->name }} = 1 {{ $data->related_unit ? $data->related_unit->name : '-' }} {{ $data->related_sign ? $data->related_sign : '-' }} {{ $data->related_value ? $data->related_value : '-' }} @endif
No Data Available
{{-- Add Modal --}}
@csrf @foreach ($units as $data) @endforeach
@endsection