@extends('backend.layouts.master') @section('section-title', 'Edit Product') @section('page-title', 'Product Edit') @if (check_permission('product.update')) @section('action-button') All Product @endsection @endif @section('content')
@csrf {{-- Product name --}}
{{ $errors->has('name') ? $errors->first('name') : '' }}
{{-- Product barcode --}}
{{ $errors->has('barcode') ? $errors->first('barcode') : '' }}
{{-- Category --}}
{{ $errors->has('category_id') ? $errors->first('category_id') : '' }}
{{-- Brand --}}
@if ($data->unit->related_unit_id == null) {{-- Unit --}}
{{-- Unit --}}
{{-- Unit --}}
@else {{-- Unit --}}
{{-- Unit --}}
{{-- Unit --}}
@endif @if(env('APP_SC') == 'yes')
{{ $errors->has('size') ? $errors->first('size') : '' }}
{{ $errors->has('color') ? $errors->first('color') : '' }}
@endif {{-- Price --}}
{{ $errors->has('purchase_price') ? $errors->first('purchase_price') : '' }}
{{ $errors->has('selling_price') ? $errors->first('selling_price') : '' }}
{{-- status --}}
{{ ($errors->has('status'))?$errors->first('status'):''; }}
{{-- Description --}}
{{-- Image --}}
@endsection