@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('labs.labs') }}

@include('investigations::labs.menu') @include('flash::message')
{{-- {{ __('clinical_data.lab_usages_report') }} --}}
@if (Auth::user()->can('labs-create')) {{ __('labs.add_lab') }} {{ __('labs.add_lab_form') }} @endif @if (Auth::user()->can('labs-bulk-create')) {{ __('labs.add_multiple_labs') }} @endif @if (Auth::user()->can('labs-delete')) {{ __('labs.inactive_labs') }} @endif
{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach ($labs as $item) {{-- --}} @endforeach {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
#{{ __('labs.name') }}{{ __('labs.cost') }}{{ __('labs.insurance_status') }}{{ __('labs.non_insured_price') }}{{ __('labs.insured_price') }}{{ __('labs.lab_stock') }} {{ __('labs.store_stock') }}{{ __('labs.current_batch') }}{{ __('labs.expiry_date') }}{{ __('labs.expense_account') }}
{{ $item->name }} {{--
{{ Form::model($item->id, ['method' => 'DELETE', 'route' => ['labs.destroy', $item->id]]) }} {{ Form::close() }}
--}}
{{ $item->total_lab_stock }} @if (get_name($item->form_id, 'id', 'name', 'lab_forms') != 'N/A') {{ get_name($item->form_id, 'id', 'name', 'lab_forms') }} @else {{ null }}@endif {{ $item->total_store_stock }} @if (get_name($item->form_id, 'id', 'name', 'lab_forms') != 'N/A'){{ get_name($item->form_id, 'id', 'name', 'lab_forms') }}@else {{ null }}@endif {{ get_name($item->expenses_account_id, 'id', 'name', 'chart_of_accounts') }} {{ __('labs.edit') }} @if(empty($item->total_stock)&& empty($item->store_stock)) {{ Form::model($item->id, ['method' => 'DELETE', 'route' => ['labs.destroy', $item->id]]) }} {{ Form::close() }} @elseif (!empty($item->total_stock) || !empty($item->store_stock)) Still Stocked @endif
#{{ __('labs.name') }}{{ __('labs.cost') }}{{ __('labs.insurance_status') }}{{ __('labs.non_insured_price') }} {{ __('labs.insured_price') }}{{ __('labs.lab_stock') }} {{ __('labs.store_stock') }}{{ __('labs.current_batch') }}{{ __('labs.expiry_date') }}{{ __('labs.expense_account') }}

{{-- {{ __('labs.clear_stock') }} --}}
@endsection @push('scripts') @endpush