@extends('layouts.app') @section('title', __('New Purchase')) @section('content')
@if ($errors->any()) @endif
{{ __('New Purchase') }}
@csrf
@if($errors->has('date')) {{ $errors->first('date') }} @endif
@if($errors->has('supplier')) {{ $errors->first('supplier') }} @endif

@if($errors->has('items.0.name')) {{ $errors->first('items.0.name') }} @endif
@if($errors->has('items.0.description')) {{ $errors->first('items.0.description') }} @endif
@if($errors->has('items.0.quantity')) {{ $errors->first('items.0.quantity') }} @endif
@if($errors->has('items.0.cost')) {{ $errors->first('items.0.cost') }} @endif
@if($errors->has('items.0.sell')) {{ $errors->first('items.0.sell') }} @endif
@if($errors->has('items.0.alert_before')) {{ $errors->first('items.0.alert_before') }} @endif
@if($errors->has('items.0.warehouse')) {{ $errors->first('items.0.warehouse') }} @endif
@if($errors->has('amount')) {{ $errors->first('amount') }} @endif
@if($errors->has('paid')) {{ $errors->first('paid') }} @endif
@endsection @section('scripts') @endsection