{{ __('main.material_list') }}
@foreach ($materials as $item) @endforeach
# {{ __('main.material') }} {{ __('main.price') }} / {{ __('main.unit') }} {{ __('main.status') }} {{ __('main.in_stock') }} {{ __('main.actions') }}
{{$loop->index + 1}}
{{$item->name}}
{{getFormattedCurrency($item->price)}} / {{getUnitType($item->unit)}} @if(Auth::user()->user_type == 3) @if(Auth::user()->id == $item->created_by)
@endif @endif @if(Auth::user()->user_type == 2)
@endif
{{$item->opening_stock ?? 0.00}} {{getUnitType($item->unit)}} @if(Auth::user()->user_type == 3) @if(Auth::user()->id == $item->created_by) {{ __('main.edit') }} @endif @endif @if(Auth::user()->user_type == 2) {{ __('main.edit') }} @endif
@if(count($materials) == 0) @endif