@php $rand = rand(1, 10000); @endphp
@if($type != 'supplier_waybill') @switch($type) @case('supplier_orders') @php $route = route('process.show_send_email_modal', ['email_type' => 'supplier_order', 'file_type' => 'supplier_orders', 'data_id' => $supplier_offer->id, 'data_model' => 'SupplierOffer', 'form_blade' => 'form_send_email']); @endphp @break @case('supplier_confirmation') @php $route = route('process.show_send_email_modal', ['email_type' => 'supplier_confirm', 'file_type' => 'supplier_confirmation', 'data_id' => $supplier_offer->id, 'data_model' => 'SupplierOffer', 'form_blade' => 'form_send_email']); @endphp @break @case('supplier_approval') @php $route = route('process.show_send_email_modal', ['email_type' => 'supplier_approval', 'file_type' => 'supplier_approval', 'data_id' => $supplier_offer->id, 'data_model' => 'SupplierOffer', 'form_blade' => 'form_send_email']); @endphp @break @default @endswitch {{-- Email küldés START --}} {{-- Email küldés END --}} @endif