@extends('backend.layouts.master') @section('title', 'Attribute') @section('scripts') @endsection @section('content')

{{ $attribute->name }}

Details
ID
{{ $attribute->id }}
Name
{{ $attribute->name }}
Category
{{ $attribute->group->category->name }}
Group
{{ $attribute->group->name }}
Sort Order
{{ $attribute->sort_order }}
Type
{{ $attribute->type->name }}
Unit Before
{{ $attribute->unit_before }}
Unit After
{{ $attribute->unit_after }}
Default Value
{{ $attribute->default_value }}
Validation Rules
{{ $attribute->validation }}
Description
{{ $attribute->description }}
Created
{{ $attribute->created_at->diffForHumans() }}
Last Updated
{{ $attribute->updated_at->diffForHumans() }}
Actions
Edit {!! csrf_field() !!} {!! method_field('delete') !!}
@if($attribute->type_id == '3' || $attribute->type_id == '4')
Options
@foreach($attribute->options->sortBy('sort_order') as $option) @endforeach
ID Name Sort Order Created Actions
{{ $option->id }} {{ $option->name }} {{ $option->sort_order }} {{ $option->created_at->diffForHumans() }}
{!! csrf_field() !!} {!! method_field('delete') !!}
@endif @endsection