@extends('backEnd.master') @section('title') @lang('inventory.supplier_list') @endsection @section('mainContent') @push('css') @endpush
@if (isset($editData)) @if (userPermission('suppliers-store')) @endif @endif
@if (isset($editData)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => ['suppliers-update', $editData->id], 'method' => 'PUT', 'enctype' => 'multipart/form-data']) }} @else @if (userPermission('suppliers-store')) {{ Form::open([ 'class' => 'form-horizontal', 'files' => true, 'route' => 'suppliers-store', 'method' => 'POST', 'enctype' => 'multipart/form-data', ]) }} @endif @endif

@if (isset($editData)) @lang('inventory.edit_supplier') @else @lang('inventory.add_supplier') @endif

@if ($errors->has('company_name')) {{ $errors->first('company_name') }} @endif
@if ($errors->has('company_address')) {{ $errors->first('company_address') }} @endif
@if ($errors->has('contact_person_name')) {{ $errors->first('contact_person_name') }} @endif
@if ($errors->has('contact_person_mobile')) {{ $errors->first('contact_person_mobile') }} @endif
@if ($errors->has('contact_person_email')) {{ $errors->first('contact_person_email') }} @endif
@php $tooltip = ''; if (userPermission('suppliers-store') || userPermission('suppliers-edit')) { $tooltip = ''; } else { $tooltip = 'You have no permission to add'; } @endphp
{{ Form::close() }}

@lang('inventory.supplier_list')

@if (isset($suppliers)) @foreach ($suppliers as $value) @endforeach @endif
@lang('inventory.supplier_name') @lang('inventory.company_name') @lang('inventory.company_address') @lang('common.email') @lang('common.mobile') @lang('common.action')
{{ $value->contact_person_name }} {{ $value->company_name }} {{ $value->company_address }} {{ $value->contact_person_email }} {{ $value->contact_person_mobile }} @if (userPermission('suppliers-edit')) @lang('common.edit') @endif @if (userPermission('suppliers-delete')) @lang('common.delete') @endif
@endsection @include('backEnd.partials.data_table_js')