@extends('user.layout.master') @section('body') @if($purchase)
@csrf

পন্যের খরচ এন্ট্রি

@if($errors->has('cost_name')) {{ $errors->first('cost_name') }} @endif
@if($errors->has('taka')) {{ $errors->first('taka') }} @endif
@if($errors->has('entry_date')) {{ $errors->first('entry_date') }} @endif

এড কার্ট

@php $count = 1; $countRow = count($cost_entry); $total = 0; $cost_name = ''; @endphp @if($countRow > 0) @foreach($cost_entry as $v) @php if($v->cost_name == 1){ $cost_name = 'লেবার খরচ'; }else if($v->cost_name == 2){ $cost_name = 'মসজিদ ও অন্যান্য খরচ'; }else if($v->cost_name == 3){ $cost_name = 'ট্রাক খরচ'; }else if($v->cost_name == 4){ $cost_name = 'ভ্যান খরচ'; }else if($v->cost_name == 5){ $cost_name = 'গদি ও তহরী খরচ'; } @endphp @php $total += $v->taka; @endphp @endforeach @else @endif
ক্রমিক তারিখ খরচের নাম টাকা
{{$count++}} {{ date('d-m-Y', strtotime($v->entry_date)) }} {{$cost_name}} {{$v->taka}}
মোট টাকা : {{$total}}
রেকর্ড পাওয়া যায়নি
@else @endif @endsection