@extends('layouts.main') @section('page-title') {{ __('Manage Vendors') }} @endsection @section('page-breadcrumb') {{ __('Vendors') }} @endsection @push('scripts') @endpush @section('page-action')
@stack('addButtonHook') @can('vendor import') @endcan @can('vendor create') @endcan
@endsection @section('content')
@if (Gate::check('vendor edit') || Gate::check('vendor delete') || Gate::check('vendor show')) @endif @foreach ($vendors as $k => $Vendor) @if (!empty($Vendor['vendor_id'])) @else @endif @if (Gate::check('vendor edit') || Gate::check('vendor delete') || Gate::check('vendor show')) @endif @endforeach
# {{ __('Name') }} {{ __('Contact') }} {{ __('Email') }} {{ __('Balance') }} {{ __('Action') }}
@can('vendor show') {{ Modules\Account\Entities\Vender::vendorNumberFormat($Vendor['vendor_id']) }} @else {{ \Modules\Account\Entities\Vender::vendorNumberFormat($Vendor['vendor_id']) }} @endcan --{{ $Vendor['name'] }} {{ $Vendor['contact'] }} {{ $Vendor['email'] }} {{ currency_format_with_sym($Vendor['balance']) }} @if($Vendor->is_disable == 1) @if (!empty($Vendor['vendor_id'])) @can('vendor show') @endcan @endif @can('vendor edit') @endcan @if (!empty($Vendor['vendor_id'])) @can('vendor delete')
{{ Form::open(['route' => ['vendors.destroy', $Vendor['id']], 'class' => 'm-0']) }} @method('DELETE') {{ Form::close() }}
@endcan @endif
@else
@endif
@endsection