@extends('layouts.template') @section('template')

ITEM

@if(Session::has('success'))
{{Session::get('success')}} @php Session::forget('success'); @endphp
@endif @if(Session::has('update'))
{{Session::get('update')}} @php Session::forget('update'); @endphp
@endif @if(Session::has('delete'))
{{Session::get('delete')}} @php Session::forget('delete'); @endphp
@endif
@if(isset($items)) @php $srl = 0; @endphp @foreach($items as $key => $data) @endforeach @endif
ID Code Name Size Color Description Catagory Brand Cost MRP Stock Action
{{ ++$key }} {{ str_pad($data->item_code, 4, '0', STR_PAD_LEFT) }} {{ $data->item_name }} {{ $data->size_name }} {{ $data->color_name }} {{ $data->description }} {{ $data->cata_name }} {{ $data->brand_name }} {{ $data->costing_rate }} {{ $data->mrp }} {{ $data->opening_stock_qty+$data->stock_in-$data->stock_out }} Edit @if(Auth::user()->role == 'admin')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endif
@endsection