@extends('layouts.master') @section('css') @endsection @section('title') Journal Request @endsection @section('content') @isset($voucherRequest) Edit Journal Request @else Add Journal Request @endisset @isset($voucherRequest) @method('put') @else @endisset @csrf @if (auth()->user()->staff == null) Branch Select branch @foreach ($branches as $branch) branch_id == $branch->id ? 'selected' : '') : ($branch->name == 'Main Branch' ? 'selected' : '') }}> {{ $branch->name }} @endforeach @endif @if (Auth::user()->company_profile->show_cost_center == 1) Cost Center Select Cost Center @foreach ($costCenters as $costCenter) cost_center_id == $costCenter->id ? 'selected' : '') : '' }}> {{ $costCenter->name }} @endforeach @endif Date Ledger (Dr) @isset($voucherRequest) {{ $voucherRequest->debitLedger->name }} @endisset Ledger (Cr) @isset($voucherRequest) {{ $voucherRequest->creditLedger->name }} @endisset Amount Remarks {{ isset($voucherRequest) ? $voucherRequest->remarks : '' }} Submit Report Go Back @endsection @section('script') @endsection