@extends('admin.layouts.master-soyuz') @section('title',__('All Units |')) @section('body') @component('admin.component.breadcumb',['secondactive' => 'active']) @slot('heading') {{ __('All Unitss') }} @endslot @slot('menu1') {{ __('All Units') }} @endslot @slot('button')
@can('users.create') {{__('Add unit')}} @endcan
@endslot @endcomponent
{{ __('All Units') }}
@foreach(App\Unit::all() as $key=> $unit) @endforeach
# {{__("Unit Type")}} {{__("Manage Values")}} {{__("Action")}}
{{$key+1}} {{ $unit->title }}

@isset($unit->unitvalues) @foreach($unit->unitvalues as $uv) {{ $uv->unit_values }}: {{ $uv->short_code }}, @endforeach @endisset

@if($unit->title != 'Color' && $unit->title != 'Colour' && $unit->title != 'colour' && $unit->title != 'color') {{__("Manage Values")}} @endif
@foreach(App\Unit::all() as $key=> $unit) @endforeach @endsection