@extends('layouts.app') @section('content') {{ $module_title }} Home {{ $module_title }} {{ isset($client) ? 'Edit' : 'Create' }} Salary Format Back @csrf @if (!isset($client)) Select Client @foreach ($clients as $cli) {{ $cli->establishment_name }} @endforeach @else Client: {{ $client->establishment_name }} @endif Component Name Need to maintain same name in csv Type Required DB Column + @php $rows = isset($components) ? $components : [null]; @endphp @foreach ($rows as $i => $component) type == 'earning' ? 'selected' : '' }}> Earning type == 'deduction' ? 'selected' : '' }}> Deduction is_required ? 'selected' : '' }}> Yes is_required ? 'selected' : '' }}> No Select Column @foreach ($salary_types as $k => $data) salary_type == $data->id ? 'selected' : '' }}> {{ $data->salary_type }} @endforeach @if ($i > 0) x @endif @endforeach Save @endsection