@php $ewaybill = $data['ewaybill_id']; $ewaybill_id = \Illuminate\Support\Facades\Crypt::decrypt($ewaybill); $ewaybill = \App\Models\ewaybill::find($ewaybill_id); $user = \App\Models\User::find($ewaybill->created_by); $price = $data['amount']; @endphp